Project

General

Profile

Support #87 » 0002-Ensure-that-the-flow-has-the-IPONLY-flag-src-or-dst.patch

Changing the conditions of the else, to ensure that the flow is set as IPONLY (src or dst) - Pablo Rincon, 02/10/2010 11:54 AM

View differences:

src/detect.c
p->flow->iponly_action = p->action;
FlowSetIPOnlyFlag(p->flow, p->flowflags & FLOW_PKT_TOSERVER ? 1 : 0);
}
} else if (p->flow != NULL && p->flow->iponly_action) {
} else if (((p->flowflags & FLOW_PKT_TOSERVER && (p->flowflags & FLOW_PKT_TOSERVER_IPONLY_SET)) ||
(p->flowflags & FLOW_PKT_TOCLIENT && (p->flowflags & FLOW_PKT_TOCLIENT_IPONLY_SET))) &&
p->flow != NULL && p->flow->iponly_action != 0) {
/* Get the result of the first IPOnlyMatch() */
p->action |= p->flow->iponly_action;
}
(2-2/2)