Gentoo Archives: gentoo-commits

From: "Benedikt Boehm (hollow)" <hollow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-mail/vpopmail/files: vpopmail-double-free.patch
Date: Sat, 20 Feb 2010 10:57:32
Message-Id: E1Nin1f-0005fm-4J@stork.gentoo.org
1 hollow 10/02/20 10:57:31
2
3 Added: vpopmail-double-free.patch
4 Log:
5 fix vusagec failure wrt #301650
6 (Portage version: 2.2_rc61/cvs/Linux i686)
7
8 Revision Changes Path
9 1.1 net-mail/vpopmail/files/vpopmail-double-free.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/vpopmail/files/vpopmail-double-free.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/vpopmail/files/vpopmail-double-free.patch?rev=1.1&content-type=text/plain
13
14 Index: vpopmail-double-free.patch
15 ===================================================================
16 diff --git a/trunk/vpalias.c b/trunk/vpalias.c
17 index 9853f14..e9bd81f 100644
18 --- a/trunk/vpalias.c
19 +++ b/trunk/vpalias.c
20 @@ -369,7 +369,7 @@ char *valias_select_names( char *domain )
21 }
22 }
23 }
24 - if (num_names < max_names) {
25 + if (num_names < max_names && num_names > 0) {
26 new_names = realloc( names, num_names * sizeof(char *) );
27 if (new_names != NULL)
28 names = new_names;