dupecheck: fix FOR_VALGRIND build

This commit is contained in:
Heikki Hannikainen 2012-10-15 20:32:53 +03:00
parent 362a6be4d2
commit 3120dd2720
1 changed files with 1 additions and 1 deletions

View File

@ -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;