Simplify logic added in r285945 as suggested by glebius

Approved by:	glebius
MFC after:	3 days
Sponsored by:	Netgate
This commit is contained in:
garga 2015-07-28 14:59:29 +00:00
parent de365b338d
commit 0816e5be72

View File

@ -5895,8 +5895,7 @@ done:
!((s && s->state_flags & PFSTATE_ALLOWOPTS) || r->allow_opts)) {
action = PF_DROP;
REASON_SET(&reason, PFRES_IPOPTIONS);
if (r->log)
log = 1;
log = r->log;
DPFPRINTF(PF_DEBUG_MISC,
("pf: dropping packet with ip options\n"));
}
@ -6330,8 +6329,7 @@ done:
!((s && s->state_flags & PFSTATE_ALLOWOPTS) || r->allow_opts)) {
action = PF_DROP;
REASON_SET(&reason, PFRES_IPOPTIONS);
if (r->log)
log = 1;
log = r->log;
DPFPRINTF(PF_DEBUG_MISC,
("pf: dropping packet with dangerous v6 headers\n"));
}