Date: Fri, 19 Aug 2011 09:06:00 +0000 (UTC) From: VANHULLEBUS Yvan <vanhu@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r225001 - stable/8/sys/netipsec Message-ID: <201108190906.p7J960T9095609@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: vanhu Date: Fri Aug 19 09:06:00 2011 New Revision: 225001 URL: http://svn.freebsd.org/changeset/base/225001 Log: MFC: Release SP's refcount in key_get_spdbyid(). PR: 156676 Submitted by: Tobias Brunner (tobias@strongswan.org) Modified: stable/8/sys/netipsec/key.c Directory Properties: stable/8/sys/ (props changed) Modified: stable/8/sys/netipsec/key.c ============================================================================== --- stable/8/sys/netipsec/key.c Fri Aug 19 09:01:34 2011 (r225000) +++ stable/8/sys/netipsec/key.c Fri Aug 19 09:06:00 2011 (r225001) @@ -2292,6 +2292,7 @@ key_spdget(so, m, mhp) } n = key_setdumpsp(sp, SADB_X_SPDGET, 0, mhp->msg->sadb_msg_pid); + KEY_FREESP(&sp); if (n != NULL) { m_freem(m); return key_sendup_mbuf(so, n, KEY_SENDUP_ONE);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108190906.p7J960T9095609>