svn commit: r316640 - stable/11/sys/netpfil/pf
Kristof Provost
kp at FreeBSD.org
Sat Apr 8 09:48:22 UTC 2017
Author: kp
Date: Sat Apr 8 09:48:21 2017
New Revision: 316640
URL: https://svnweb.freebsd.org/changeset/base/316640
Log:
MFC r316355
pf: Fix leak of pf_state_keys
If we hit the state limit we returned from pf_create_state() without cleaning
up.
PR: 217997
Submitted by: Max <maximos at als.nnov.ru>
Modified:
stable/11/sys/netpfil/pf/pf.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/netpfil/pf/pf.c
==============================================================================
--- stable/11/sys/netpfil/pf/pf.c Sat Apr 8 08:46:02 2017 (r316639)
+++ stable/11/sys/netpfil/pf/pf.c Sat Apr 8 09:48:21 2017 (r316640)
@@ -3547,7 +3547,7 @@ pf_create_state(struct pf_rule *r, struc
(counter_u64_fetch(r->states_cur) >= r->max_states)) {
counter_u64_add(V_pf_status.lcounters[LCNT_STATES], 1);
REASON_SET(&reason, PFRES_MAXSTATES);
- return (PF_DROP);
+ goto csfailed;
}
/* src node for filter rule */
if ((r->rule_flag & PFRULE_SRCTRACK ||
More information about the svn-src-stable-11
mailing list