detect/http: report error on alloc failure

pull/10347/head
Victor Julien 2 years ago committed by Victor Julien
parent b48ec8a039
commit 7e4dba7dfb

@ -593,6 +593,8 @@ static void *HttpMultiBufHeaderThreadDataInit(void *data)
/* This return value check to satisfy our Cocci malloc checks. */
if (td == NULL) {
SCLogError("failed to allocate %" PRIuMAX " bytes: %s", (uintmax_t)sizeof(*td),
strerror(errno));
return NULL;
}
return td;

Loading…
Cancel
Save