Simplify logic added in r285945 as suggested by glebius
Approved by: glebius MFC after: 3 days Sponsored by: Netgate
This commit is contained in:
parent
de365b338d
commit
0816e5be72
@ -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"));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user