diff options
author | melifaro <melifaro@FreeBSD.org> | 2016-01-10 08:37:00 +0000 |
---|---|---|
committer | melifaro <melifaro@FreeBSD.org> | 2016-01-10 08:37:00 +0000 |
commit | 3f95da300d245cfef0222fc92a93ed4a8cc079c0 (patch) | |
tree | 74bc4e92dfde391572991bcf60c8d4bcca8ea539 /sys/netpfil | |
parent | 6e757e42102ed2d09e5c209a79b6ef0992015904 (diff) | |
download | FreeBSD-src-3f95da300d245cfef0222fc92a93ed4a8cc079c0.zip FreeBSD-src-3f95da300d245cfef0222fc92a93ed4a8cc079c0.tar.gz |
Initialize error value ta_lookup_kfib() by default to please compiler.
Diffstat (limited to 'sys/netpfil')
-rw-r--r-- | sys/netpfil/ipfw/ip_fw_table_algo.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netpfil/ipfw/ip_fw_table_algo.c b/sys/netpfil/ipfw/ip_fw_table_algo.c index 75b2b67..2ce550e 100644 --- a/sys/netpfil/ipfw/ip_fw_table_algo.c +++ b/sys/netpfil/ipfw/ip_fw_table_algo.c @@ -3814,6 +3814,7 @@ ta_lookup_kfib(struct table_info *ti, void *key, uint32_t keylen, #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, void *key, uint32_t keylen, 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); |