Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Sep 2012 09:15:32 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r240638 - head/sys/netpfil/pf
Message-ID:  <201209180915.q8I9FWo5061929@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Tue Sep 18 09:15:32 2012
New Revision: 240638
URL: http://svn.freebsd.org/changeset/base/240638

Log:
  Fix DIOCNATLOOK: zero key padding before performing lookup.

Modified:
  head/sys/netpfil/pf/pf_ioctl.c

Modified: head/sys/netpfil/pf/pf_ioctl.c
==============================================================================
--- head/sys/netpfil/pf/pf_ioctl.c	Tue Sep 18 08:53:11 2012	(r240637)
+++ head/sys/netpfil/pf/pf_ioctl.c	Tue Sep 18 09:15:32 2012	(r240638)
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209180915.q8I9FWo5061929>