if a signature is non-tcp, it's always a packet sig

remotes/origin/HEAD
Anoop Saldanha 14 years ago committed by Victor Julien
parent 419cdc8558
commit 55c4e419fd

@ -85,6 +85,10 @@ int SignatureHasPacketContent(Signature *s) {
SCReturnInt(0);
}
if (!(s->proto.proto[6 / 8] & 1 << (6 % 8))) {
SCReturnInt(1);
}
if (s->sm_lists[DETECT_SM_LIST_PMATCH] == NULL) {
SCLogDebug("no mpm");
SCReturnInt(0);

Loading…
Cancel
Save