You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-mail/vpopmail/files/vpopmail-double-free.patch

14 lines
399 B

diff --git a/trunk/vpalias.c b/trunk/vpalias.c
index 9853f14..e9bd81f 100644
--- a/vpalias.c
+++ b/vpalias.c
@@ -369,7 +369,7 @@ char *valias_select_names( char *domain )
}
}
}
- if (num_names < max_names) {
+ if (num_names < max_names && num_names > 0) {
new_names = realloc( names, num_names * sizeof(char *) );
if (new_names != NULL)
names = new_names;