don't try and free a static buffer, avoiding a segfault with unmailboxes;

regression since 1.5.19. From Mutt upstream.
This commit is contained in:
sthen 2009-06-19 21:35:37 +00:00
parent 70a298fcd2
commit 3809e2b321
2 changed files with 17 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.54 2009/06/19 21:28:24 sthen Exp $
# $OpenBSD: Makefile,v 1.55 2009/06/19 21:35:37 sthen Exp $
COMMENT= tty-based e-mail client, development version
VERSION= 1.5.20
DISTNAME= mutt-${VERSION}
PKGNAME= ${DISTNAME}p0
PKGNAME= ${DISTNAME}p1
MASTER_SITES= ${MASTER_SITES_MUTT:=devel/}
WANTLIB= z

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-buffy_c,v 1.1 2009/06/19 21:35:37 sthen Exp $
r5914 from upstream; Do not free statically-allocated
buffy buffer. Unbreaks unmailboxes, ticket #3273.
--- buffy.c.orig Fri Jun 19 22:30:51 2009
+++ buffy.c Fri Jun 19 22:30:52 2009
@@ -236,7 +236,6 @@ int mutt_parse_mailboxes (BUFFER *path, BUFFER *s, uns
{
if(*tmp)
{
- FREE (&((*tmp)->path));
tmp1=(*tmp)->next;
FREE (tmp); /* __FREE_CHECKED__ */
*tmp=tmp1;