detect-http: add superfluous alloc check for cocci

Add not-needed SCCalloc return check to satisfy our Cocci malloc
checks as it can't see that the caller immediately checks the return
value of this simple wrapper around SCCalloc.
pull/10347/head
Jason Ish 1 year ago committed by Victor Julien
parent 68b0052018
commit f800ed0f90

@ -590,6 +590,11 @@ typedef struct HttpMultiBufHeaderThreadData {
static void *HttpMultiBufHeaderThreadDataInit(void *data)
{
HttpMultiBufHeaderThreadData *td = SCCalloc(1, sizeof(*td));
/* This return value check to satisfy our Cocci malloc checks. */
if (td == NULL) {
return NULL;
}
return td;
}

Loading…
Cancel
Save