]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect: use SC macros for IPV6 header
authorPhilippe Antoine <contact@catenacyber.fr>
Wed, 4 Mar 2020 15:43:51 +0000 (16:43 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 5 Mar 2020 15:08:07 +0000 (16:08 +0100)
src/detect-ipv6hdr.c

index 35b40fe6bfdc5304b1f499b43c134bd56fcc253c..06e6fcfb16ceebbd944f0708fa8473965c1fa5e9 100644 (file)
@@ -108,7 +108,7 @@ static InspectionBuffer *GetData(DetectEngineThreadCtx *det_ctx,
                     ((uint8_t *)p->ip6h + (ptrdiff_t)hlen),
                     ((uint8_t *)GET_PKT_DATA(p) + (ptrdiff_t)GET_PKT_LEN(p)),
                     IPV6_GET_EXTHDRS_LEN(p));
-            return NULL;
+            SCReturnPtr(NULL, "InspectionBuffer");
         }
 
         const uint32_t data_len = hlen;
@@ -118,7 +118,7 @@ static InspectionBuffer *GetData(DetectEngineThreadCtx *det_ctx,
         InspectionBufferApplyTransforms(buffer, transforms);
     }
 
-    return buffer;
+    SCReturnPtr(buffer, "InspectionBuffer");
 }
 
 #ifdef UNITTESTS