[Bug 236368] pfctl 'source tracking nodes' printout broken after r343295
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Mar 7 18:15:06 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236368
Kristof Provost <kp at freebsd.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|bugs at FreeBSD.org |kp at freebsd.org
CC| |kp at freebsd.org
Status|New |In Progress
--- Comment #1 from Kristof Provost <kp at 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, int
flags, struct thread *td
break;
}
+ nr = 0;
+
p = pstore = malloc(psn->psn_len, M_TEMP, M_WAITOK);
for (i = 0, sh = V_pf_srchash; i <= pf_srchashmask;
i++, sh++) {
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list