svn commit: r293630 - head/sys/netpfil/ipfw

Alexander V. Chernikov melifaro at FreeBSD.org
Sun Jan 10 08:37:01 UTC 2016


Author: melifaro
Date: Sun Jan 10 08:37:00 2016
New Revision: 293630
URL: https://svnweb.freebsd.org/changeset/base/293630

Log:
  Initialize error value ta_lookup_kfib() by default to please compiler.

Modified:
  head/sys/netpfil/ipfw/ip_fw_table_algo.c

Modified: head/sys/netpfil/ipfw/ip_fw_table_algo.c
==============================================================================
--- head/sys/netpfil/ipfw/ip_fw_table_algo.c	Sun Jan 10 08:14:25 2016	(r293629)
+++ head/sys/netpfil/ipfw/ip_fw_table_algo.c	Sun Jan 10 08:37:00 2016	(r293630)
@@ -3814,6 +3814,7 @@ ta_lookup_kfib(struct table_info *ti, vo
 #endif
 	int error;
 
+	error = ENOENT;
 #ifdef INET
 	if (keylen == 4) {
 		in.s_addr = *(in_addr_t *)key;
@@ -3826,9 +3827,6 @@ ta_lookup_kfib(struct table_info *ti, vo
 		error = fib6_lookup_nh_basic(ti->data,
 		    (struct in6_addr *)key, 0, 0, 0, &nh6);
 #endif
-#if !defined(INET6) && !defined(INET)
-	error = ENOENT;
-#endif
 
 	if (error != 0)
 		return (0);


More information about the svn-src-all mailing list