diff options
author | garga <garga@FreeBSD.org> | 2016-02-22 17:18:36 +0000 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2016-02-22 17:18:36 +0000 |
commit | dbe57635db62e228ef86d590679b272da68cd126 (patch) | |
tree | f73f2fbfd50d393160b52a9f15c0293c2f8c3a04 /sys/netpfil | |
parent | 4112d41bd632ff2eb376f20f94cfed638b0426bf (diff) | |
download | FreeBSD-src-dbe57635db62e228ef86d590679b272da68cd126.zip FreeBSD-src-dbe57635db62e228ef86d590679b272da68cd126.tar.gz |
MFC r286641 (from oshogbo):
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: re (marius)
Obtained from: OpenBSD
Sponsored by: Rubicon Communications (Netgate)
Differential revision: https://reviews.freebsd.org/D5392
Diffstat (limited to 'sys/netpfil')
-rw-r--r-- | sys/netpfil/pf/pf_ioctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netpfil/pf/pf_ioctl.c b/sys/netpfil/pf/pf_ioctl.c index 12c8be5..29ebb68 100644 --- a/sys/netpfil/pf/pf_ioctl.c +++ b/sys/netpfil/pf/pf_ioctl.c @@ -1661,13 +1661,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) |