]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/http: report error on alloc failure 10347/head
authorVictor Julien <vjulien@oisf.net>
Fri, 9 Feb 2024 07:09:38 +0000 (08:09 +0100)
committerVictor Julien <victor@inliniac.net>
Fri, 9 Feb 2024 10:24:04 +0000 (11:24 +0100)
src/detect-http-header.c

index e32220576ba118c1de55d965a59493e63b40a088..f433d9fc9f073048df10e2d9f8cb1a607f2e3df6 100644 (file)
@@ -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;