mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
GH-1644: Pass a larger structure to be calloc'd in patricia.c
This commit is contained in:
parent
fcee137b1a
commit
caba3dc151
1 changed files with 1 additions and 1 deletions
|
@ -273,7 +273,7 @@ New_Prefix2 (int family, void *dest, int bitlen, prefix_t *prefix)
|
|||
if (family == AF_INET) {
|
||||
if (prefix == NULL) {
|
||||
#ifndef NT
|
||||
prefix = calloc(1, sizeof (prefix4_t));
|
||||
prefix = calloc(1, sizeof (prefix_t));
|
||||
if (prefix == NULL)
|
||||
out_of_memory("patricia/new_prefix2: unable to allocate memory");
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue