From 8d46226a59c83f641352a0a45fc4018fe0c68880 Mon Sep 17 00:00:00 2001 From: Shivani Bhardwaj Date: Fri, 9 Oct 2026 06:26:21 +0530 Subject: [PATCH] detect/iponly: carry on dotted netmask For calculating the address space to be matched against, the CIDR netmask is taken to account by the IP Only Engine. However, this netmask was not set properly for dotted netmasks. Fix it. Ticket: 9166 --- src/detect-engine-iponly.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/detect-engine-iponly.c b/src/detect-engine-iponly.c index ae893753b1..d58686c53f 100644 --- a/src/detect-engine-iponly.c +++ b/src/detect-engine-iponly.c @@ -294,6 +294,7 @@ static int IPOnlyCIDRItemParseSingle(IPOnlyCIDRItem **pdd, const char *str) goto error; dd->netmask = (uint8_t)cidr; + netmask = CIDRGet(cidr); } r = inet_pton(AF_INET, ip, &in);