clean: use SC_MD5_HEX_LEN instead of magic number 32

pull/8157/head
Philippe Antoine 3 years ago committed by Victor Julien
parent 7823653a30
commit c09ca7d171

@ -179,7 +179,7 @@ static bool DetectTlsJa3HashValidateCallback(const Signature *s,
SCLogWarning(SC_WARN_POOR_RULE, "rule %u: %s", s->id, *sigerror);
}
if (cd->content_len == 32)
if (cd->content_len == SC_MD5_HEX_LEN)
return true;
*sigerror = "Invalid length of the specified JA3 hash (should "

@ -177,7 +177,7 @@ static bool DetectTlsJa3SHashValidateCallback(const Signature *s,
SCLogWarning(SC_WARN_POOR_RULE, "rule %u: %s", s->id, *sigerror);
}
if (cd->content_len == 32)
if (cd->content_len == SC_MD5_HEX_LEN)
return true;
*sigerror = "Invalid length of the specified JA3S hash (should "

Loading…
Cancel
Save