svn commit: r290154 - head/sys/net

Bryan Drewery bdrewery at FreeBSD.org
Thu Oct 29 18:58:20 UTC 2015


Author: bdrewery
Date: Thu Oct 29 18:58:18 2015
New Revision: 290154
URL: https://svnweb.freebsd.org/changeset/base/290154

Log:
  Avoid passing an uninitialized 'i'.  Currently nothing was depending on it
  anyhow.
  
  Coverity CID:	1331562

Modified:
  head/sys/net/route.c

Modified: head/sys/net/route.c
==============================================================================
--- head/sys/net/route.c	Thu Oct 29 18:29:28 2015	(r290153)
+++ head/sys/net/route.c	Thu Oct 29 18:58:18 2015	(r290154)
@@ -845,7 +845,7 @@ rt_foreach_fib_walk(int af, rt_setwarg_t
 			if (rnh == NULL)
 				continue;
 			if (setwa_f != NULL)
-				setwa_f(rnh, fibnum, i, arg);
+				setwa_f(rnh, fibnum, AF_UNSPEC, arg);
 
 			RADIX_NODE_HEAD_LOCK(rnh);
 			rnh->rnh_walktree(rnh, (walktree_f_t *)wa_f, arg);


More information about the svn-src-all mailing list