summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2014-01-06 19:05:04 +0000
committerglebius <glebius@FreeBSD.org>2014-01-06 19:05:04 +0000
commit353906d3d27df3b7e684cec99cdc6e697ac8da9d (patch)
treef8c0532879168b2d754caaa810e65ed1cd87893e
parent916cce9b6e5f03ef989a69379e7cfe3f120b0a17 (diff)
downloadFreeBSD-src-353906d3d27df3b7e684cec99cdc6e697ac8da9d.zip
FreeBSD-src-353906d3d27df3b7e684cec99cdc6e697ac8da9d.tar.gz
When pf_get_translation() fails, it should leave *sn pointer pristine,
otherwise we will panic in pf_test_rule(). PR: 182557
-rw-r--r--sys/netpfil/pf/pf_lb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netpfil/pf/pf_lb.c b/sys/netpfil/pf/pf_lb.c
index bc7cc09..62789f5 100644
--- a/sys/netpfil/pf/pf_lb.c
+++ b/sys/netpfil/pf/pf_lb.c
@@ -686,6 +686,7 @@ notrans:
uma_zfree(V_pf_state_key_z, *nkp);
uma_zfree(V_pf_state_key_z, *skp);
*skp = *nkp = NULL;
+ *sn = NULL;
return (NULL);
}
OpenPOWER on IntegriCloud