diff options
-rw-r--r-- | lib/hash.c | 2 | ||||
-rw-r--r-- | lib/sockopt.c | 1 |
2 files changed, 1 insertions, 2 deletions
@@ -32,7 +32,7 @@ hash_create_size (unsigned int size, unsigned int (*hash_key) (void *), struct hash *hash; hash = XMALLOC (MTYPE_HASH, sizeof (struct hash)); - hash->index = XCALLOC (MTYPE_HASH_INDEX, + hash->index = XCALLOC (MTYPE_HASH_INDEX, sizeof (struct hash_backet *) * size); hash->size = size; hash->hash_key = hash_key; diff --git a/lib/sockopt.c b/lib/sockopt.c index 3a25ae1a..4ba7e874 100644 --- a/lib/sockopt.c +++ b/lib/sockopt.c @@ -561,4 +561,3 @@ sockopt_tcp_signature (int sock, union sockunion *su, const char *password) return -2; #endif /* HAVE_TCP_MD5SIG */ } - |