diff options
author | glebius <glebius@FreeBSD.org> | 2012-09-18 09:15:32 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2012-09-18 09:15:32 +0000 |
commit | 0409dbb19cf907f13d79b094ceab02e1fc42f509 (patch) | |
tree | 5620ef5388aa14ff85de4cd830cd6b418e64a21a /sys/netpfil | |
parent | eec15de0e3cf2476b774efce1b1ae36e4681009e (diff) | |
download | FreeBSD-src-0409dbb19cf907f13d79b094ceab02e1fc42f509.zip FreeBSD-src-0409dbb19cf907f13d79b094ceab02e1fc42f509.tar.gz |
Fix DIOCNATLOOK: zero key padding before performing lookup.
Diffstat (limited to 'sys/netpfil')
-rw-r--r-- | sys/netpfil/pf/pf_ioctl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netpfil/pf/pf_ioctl.c b/sys/netpfil/pf/pf_ioctl.c index 032f051..d2d580d 100644 --- a/sys/netpfil/pf/pf_ioctl.c +++ b/sys/netpfil/pf/pf_ioctl.c @@ -1808,6 +1808,7 @@ DIOCGETSTATES_full: (!pnl->dport || !pnl->sport))) error = EINVAL; else { + bzero(&key, sizeof(key)); key.af = pnl->af; key.proto = pnl->proto; PF_ACPY(&key.addr[sidx], &pnl->saddr, pnl->af); |