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:
parent
2ec53858d9
commit
0644f6a68e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user