blob: 16a40b82c4f433635ebc07d87bb86bbc18dec708 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
diff --git a/trunk/vpalias.c b/trunk/vpalias.c
index 9853f14..e9bd81f 100644
--- vpalias.c
+++ 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;
|