app-layer: validate TX detect flag callbacks

Check that both are set or unset.
pull/4405/head
Jason Ish 7 years ago
parent 706558d4d5
commit ba3a2c31bf

@ -1497,6 +1497,9 @@ static void ValidateParserProto(AppProto alproto, uint8_t ipproto)
if (!(BOTH_SET_OR_BOTH_UNSET(ctx->GetTxDetectState, ctx->SetTxDetectState))) {
goto bad;
}
if (!(BOTH_SET_OR_BOTH_UNSET(ctx->GetTxDetectFlags, ctx->SetTxDetectFlags))) {
goto bad;
}
return;
bad:

Loading…
Cancel
Save