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;
}
}
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"