1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

Merge Anton's 64-bit fix.

Jeremy.
This commit is contained in:
Jeremy Allison 0001-01-01 00:00:00 +00:00
parent 2ec53858d9
commit 0644f6a68e

View File

@ -147,14 +147,12 @@ static BOOL cache_init(void)
{
if (prefix_cache) return True;
prefix_cache = malloc(sizeof(char *) * MANGLE_CACHE_SIZE);
prefix_cache = calloc(MANGLE_CACHE_SIZE, sizeof(char *));
if (!prefix_cache) return False;
prefix_cache_hashes = malloc(sizeof(u32) * MANGLE_CACHE_SIZE);
prefix_cache_hashes = calloc(MANGLE_CACHE_SIZE, sizeof(u32));
if (!prefix_cache_hashes) return False;
memset(prefix_cache, 0, sizeof(char *) * MANGLE_CACHE_SIZE);
memset(prefix_cache_hashes, 0, sizeof(char *) * MANGLE_CACHE_SIZE);
return True;
}