From: Jason Ish Date: Mon, 16 Sep 2019 22:48:47 +0000 (-0600) Subject: sip fixup: _Bool -> bool X-Git-Tag: suricata-5.0.0-rc1~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=afe065c7ace9648186d4dbe6d49e68f800f43178;p=thirdparty%2Fsuricata.git sip fixup: _Bool -> bool --- diff --git a/src/detect-sip-method.c b/src/detect-sip-method.c index add868f927..9d6b472ce7 100644 --- a/src/detect-sip-method.c +++ b/src/detect-sip-method.c @@ -72,7 +72,7 @@ static int DetectSipMethodSetup(DetectEngineCtx *de_ctx, Signature *s, const cha return 0; } -static _Bool DetectSipMethodValidateCallback(const Signature *s, const char **sigerror) +static bool DetectSipMethodValidateCallback(const Signature *s, const char **sigerror) { const SigMatch *sm = s->init_data->smlists[g_buffer_id]; for ( ; sm != NULL; sm = sm->next) { @@ -83,23 +83,23 @@ static _Bool DetectSipMethodValidateCallback(const Signature *s, const char **si if (cd->content[cd->content_len-1] == 0x20) { *sigerror = "sip.method pattern with trailing space"; SCLogError(SC_ERR_INVALID_SIGNATURE, "%s", *sigerror); - return FALSE; + return true; } else if (cd->content[0] == 0x20) { *sigerror = "sip.method pattern with leading space"; SCLogError(SC_ERR_INVALID_SIGNATURE, "%s", *sigerror); - return FALSE; + return true; } else if (cd->content[cd->content_len-1] == 0x09) { *sigerror = "sip.method pattern with trailing tab"; SCLogError(SC_ERR_INVALID_SIGNATURE, "%s", *sigerror); - return FALSE; + return true; } else if (cd->content[0] == 0x09) { *sigerror = "sip.method pattern with leading tab"; SCLogError(SC_ERR_INVALID_SIGNATURE, "%s", *sigerror); - return FALSE; + return true; } } } - return TRUE; + return true; } static InspectionBuffer *GetData(DetectEngineThreadCtx *det_ctx,