diff options
Diffstat (limited to 'net-mail/vpopmail/files/vpopmail-double-free.patch')
-rw-r--r-- | net-mail/vpopmail/files/vpopmail-double-free.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/net-mail/vpopmail/files/vpopmail-double-free.patch b/net-mail/vpopmail/files/vpopmail-double-free.patch new file mode 100644 index 000000000000..d7d118578d73 --- /dev/null +++ b/net-mail/vpopmail/files/vpopmail-double-free.patch @@ -0,0 +1,13 @@ +diff --git a/trunk/vpalias.c b/trunk/vpalias.c +index 9853f14..e9bd81f 100644 +--- a/trunk/vpalias.c ++++ b/trunk/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; |