mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Use correct src/dst ports when removing states.
Submitted by: Milosz Kaniewski <m.kaniewski@wheelsystems.com>, UMEZAWA Takeshi <umezawa@iij.ad.jp> (orginal) Reviewed by: glebius Approved by: pjd (mentor) Obtained from: OpenBSD MFC after: 3 days
This commit is contained in:
parent
f768af7dfe
commit
6fbb5246b2
1 changed files with 2 additions and 2 deletions
|
|
@ -1659,13 +1659,13 @@ relock_DIOCKILLSTATES:
|
|||
if (s->direction == PF_OUT) {
|
||||
srcaddr = &sk->addr[1];
|
||||
dstaddr = &sk->addr[0];
|
||||
srcport = sk->port[0];
|
||||
srcport = sk->port[1];
|
||||
dstport = sk->port[0];
|
||||
} else {
|
||||
srcaddr = &sk->addr[0];
|
||||
dstaddr = &sk->addr[1];
|
||||
srcport = sk->port[0];
|
||||
dstport = sk->port[0];
|
||||
dstport = sk->port[1];
|
||||
}
|
||||
|
||||
if ((!psk->psk_af || sk->af == psk->psk_af)
|
||||
|
|
|
|||
Loading…
Reference in a new issue