Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Mar 2019 18:15:03 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 236368] pfctl 'source tracking nodes' printout broken after r343295
Message-ID:  <bug-236368-227-UC0G5XJ3CM@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-236368-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-236368-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236368

Kristof Provost <kp@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|bugs@FreeBSD.org            |kp@freebsd.org
                 CC|                            |kp@freebsd.org
             Status|New                         |In Progress

--- Comment #1 from Kristof Provost <kp@freebsd.org> ---
I think I see what the problem is. Can you confirm this fixes your problem?

diff --git a/sys/netpfil/pf/pf_ioctl.c b/sys/netpfil/pf/pf_ioctl.c
index c6f9f8451be..bd988e81db2 100644
--- a/sys/netpfil/pf/pf_ioctl.c
+++ b/sys/netpfil/pf/pf_ioctl.c
@@ -3754,6 +3754,8 @@ pfioctl(struct cdev *dev, u_long cmd, caddr_t addr, i=
nt
flags, struct thread *td
                        break;
                }

+               nr =3D 0;
+
                p =3D pstore =3D malloc(psn->psn_len, M_TEMP, M_WAITOK);
                for (i =3D 0, sh =3D V_pf_srchash; i <=3D pf_srchashmask;
                    i++, sh++) {

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-236368-227-UC0G5XJ3CM>