svn commit: r226393 - stable/7/sys/netipsec

Christian Brueffer brueffer at FreeBSD.org
Sat Oct 15 13:05:32 UTC 2011


Author: brueffer
Date: Sat Oct 15 13:05:31 2011
New Revision: 226393
URL: http://svn.freebsd.org/changeset/base/226393

Log:
  MFC: r226117
  
  Add missing va_end() in an error case to clean up after va_start()
  (already done in the non-error case).

Modified:
  stable/7/sys/netipsec/key.c
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/netipsec/key.c
==============================================================================
--- stable/7/sys/netipsec/key.c	Sat Oct 15 13:03:25 2011	(r226392)
+++ stable/7/sys/netipsec/key.c	Sat Oct 15 13:05:31 2011	(r226393)
@@ -1708,6 +1708,7 @@ key_gather_mbuf(m, mhp, ndeep, nitem, va
 
 fail:
 	m_freem(result);
+	va_end(ap);
 	return NULL;
 }
 


More information about the svn-src-stable-7 mailing list