From: Shivani Bhardwaj Date: Wed, 14 Feb 2024 11:09:02 +0000 (+0530) Subject: detect/port: make DetectPortInit non static X-Git-Tag: suricata-8.0.0-beta1~1683 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a08e065c7c50def010a5721cb18190d72b5b2673;p=thirdparty%2Fsuricata.git detect/port: make DetectPortInit non static as this fn will be called upon and further used by other files later on. Ticket 6792 Bug 6414 --- diff --git a/src/detect-engine-port.c b/src/detect-engine-port.c index 86a367d376..19ddd885d7 100644 --- a/src/detect-engine-port.c +++ b/src/detect-engine-port.c @@ -64,7 +64,7 @@ static bool DetectPortIsValidRange(char *, uint16_t *); * * \retval dp newly created DetectPort on success; or NULL in case of error. */ -static DetectPort *DetectPortInit(void) +DetectPort *DetectPortInit(void) { DetectPort *dp = SCCalloc(1, sizeof(DetectPort)); if (unlikely(dp == NULL)) diff --git a/src/detect-engine-port.h b/src/detect-engine-port.h index d27dff3d30..490409d53d 100644 --- a/src/detect-engine-port.h +++ b/src/detect-engine-port.h @@ -38,6 +38,7 @@ bool DetectPortListsAreEqual(DetectPort *list1, DetectPort *list2); void DetectPortPrint(DetectPort *); void DetectPortPrintList(DetectPort *head); int DetectPortCmp(DetectPort *, DetectPort *); +DetectPort *DetectPortInit(void); void DetectPortFree(const DetectEngineCtx *de_ctx, DetectPort *); int DetectPortTestConfVars(void);