dupecheck: fix FOR_VALGRIND build
This commit is contained in:
parent
362a6be4d2
commit
3120dd2720
|
|
@ -219,7 +219,7 @@ static struct dupe_record_t *dupecheck_db_alloc(int len)
|
|||
return NULL;
|
||||
}
|
||||
#else
|
||||
dp = hmalloc(pktlen + sizeof(*dp));
|
||||
dp = hmalloc(len + sizeof(*dp));
|
||||
#endif
|
||||
memset(dp, 0, sizeof(*dp));
|
||||
dp->len = len;
|
||||
|
|
|
|||
Loading…
Reference in New Issue