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
d8f4b93526
commit
643ef281cd
@ -1665,13 +1665,13 @@ pfioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flags, struct thread *td
|
||||
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 New Issue
Block a user