ja3: check if JA3 is disabled on one line

pull/3868/head
Mats Klepsland 6 years ago committed by Victor Julien
parent 285855d928
commit 15012fc908

@ -120,11 +120,8 @@ static int DetectTlsJa3HashSetup(DetectEngineCtx *de_ctx, Signature *s, const ch
if (DetectSignatureSetAppProto(s, ALPROTO_TLS) < 0)
return -1;
if (RunmodeIsUnittests())
return 0;
/* Check if JA3 is disabled */
if (Ja3IsDisabled("rule"))
if (!RunmodeIsUnittests() && Ja3IsDisabled("rule"))
return -1;
return 0;

@ -110,11 +110,8 @@ static int DetectTlsJa3StringSetup(DetectEngineCtx *de_ctx, Signature *s, const
if (DetectSignatureSetAppProto(s, ALPROTO_TLS) < 0)
return -1;
if (RunmodeIsUnittests())
return 0;
/* Check if JA3 is disabled */
if (Ja3IsDisabled("rule"))
if (!RunmodeIsUnittests() && Ja3IsDisabled("rule"))
return -1;
return 0;

Loading…
Cancel
Save