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) {
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,