From: Philippe Antoine Date: Wed, 4 Mar 2020 15:43:51 +0000 (+0100) Subject: detect: use SC macros for IPV6 header X-Git-Tag: suricata-6.0.0-beta1~675 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc48a7cebf9e34d035ae2315d82f58577d6ccb72;p=thirdparty%2Fsuricata.git detect: use SC macros for IPV6 header --- diff --git a/src/detect-ipv6hdr.c b/src/detect-ipv6hdr.c index 35b40fe6bf..06e6fcfb16 100644 --- a/src/detect-ipv6hdr.c +++ b/src/detect-ipv6hdr.c @@ -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