From fc48a7cebf9e34d035ae2315d82f58577d6ccb72 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Wed, 4 Mar 2020 16:43:51 +0100 Subject: [PATCH] detect: use SC macros for IPV6 header --- src/detect-ipv6hdr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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