svn commit: r295730 - head/sys/netinet6

Mark Johnston markj at FreeBSD.org
Wed Feb 17 23:55:26 UTC 2016


Author: markj
Date: Wed Feb 17 23:55:24 2016
New Revision: 295730
URL: https://svnweb.freebsd.org/changeset/base/295730

Log:
  Use pfxrtr_del() instead of freeing advertising routers directly.
  
  MFC after:	1 week

Modified:
  head/sys/netinet6/nd6_rtr.c

Modified: head/sys/netinet6/nd6_rtr.c
==============================================================================
--- head/sys/netinet6/nd6_rtr.c	Wed Feb 17 23:53:24 2016	(r295729)
+++ head/sys/netinet6/nd6_rtr.c	Wed Feb 17 23:55:24 2016	(r295730)
@@ -936,9 +936,9 @@ prelist_remove(struct nd_prefix *pr)
 	/* unlink ndpr_entry from nd_prefix list */
 	LIST_REMOVE(pr, ndpr_entry);
 
-	/* free list of routers that adversed the prefix */
+	/* free list of routers that advertised the prefix */
 	LIST_FOREACH_SAFE(pfr, &pr->ndpr_advrtrs, pfr_entry, next) {
-		free(pfr, M_IP6NDP);
+		pfxrtr_del(pfr);
 	}
 	free(pr, M_IP6NDP);
 


More information about the svn-src-head mailing list