diff options
-rw-r--r-- | src/common/malloc.h | 6 | ||||
-rw-r--r-- | src/common/socket.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/common/malloc.h b/src/common/malloc.h index d6f6adb3c..2cef33982 100644 --- a/src/common/malloc.h +++ b/src/common/malloc.h @@ -145,11 +145,11 @@ ////////////// Others ////////////////////////// // should be merged with any of above later -#define CREATE(result, type, number) (result) = (type *) aCalloc ((number), sizeof(type)); +#define CREATE(result, type, number) (result) = (type *) aCalloc ((number), sizeof(type)) -#define CREATE_A(result, type, number) (result) = (type *) aCallocA ((number), sizeof(type)); +#define CREATE_A(result, type, number) (result) = (type *) aCallocA ((number), sizeof(type)) -#define RECREATE(result, type, number) (result) = (type *) aRealloc ((result), sizeof(type) * (number)); +#define RECREATE(result, type, number) (result) = (type *) aRealloc ((result), sizeof(type) * (number)) //////////////////////////////////////////////// diff --git a/src/common/socket.c b/src/common/socket.c index c91903bca..51725a0a5 100644 --- a/src/common/socket.c +++ b/src/common/socket.c @@ -1026,7 +1026,7 @@ int socket_config_read(const char *cfgName) { else if( strcmpi(w2,"mutual-failure") == 0 ) access_order=ACO_MUTUAL_FAILURE; } else if( strcmpi(w1,"allow") == 0 ){ - RECREATE(access_allow, AccessControl, access_denynum+1); + RECREATE(access_allow, AccessControl, access_allownum+1); if( access_ipmask(w2,&access_allow[access_allownum]) ) ++access_allownum; else |