svn commit: r274455 - head/sys/netinet6

Andrey V. Elsukov ae at FreeBSD.org
Wed Nov 12 22:58:53 UTC 2014


Author: ae
Date: Wed Nov 12 22:58:52 2014
New Revision: 274455
URL: https://svnweb.freebsd.org/changeset/base/274455

Log:
  We don't return sp pointer, thus NULL assignment isn't needed.
  And reference to sp will be freed at the end.
  
  MFC after:	1 week
  Sponsored by:	Yandex LLC

Modified:
  head/sys/netinet6/ip6_ipsec.c

Modified: head/sys/netinet6/ip6_ipsec.c
==============================================================================
--- head/sys/netinet6/ip6_ipsec.c	Wed Nov 12 22:51:30 2014	(r274454)
+++ head/sys/netinet6/ip6_ipsec.c	Wed Nov 12 22:58:52 2014	(r274455)
@@ -273,11 +273,7 @@ ip6_ipsec_output(struct mbuf **m, struct
 				/*
 				 * No IPsec processing is needed, free
 				 * reference to SP.
-				 *
-				 * NB: null pointer to avoid free at
-				 *     done: below.
 				 */
-				KEY_FREESP(&sp), sp = NULL;
 				goto done;
 			}
 		}


More information about the svn-src-all mailing list