summaryrefslogtreecommitdiffstats
path: root/sys/netpfil
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2016-01-10 08:14:25 +0000
committerbz <bz@FreeBSD.org>2016-01-10 08:14:25 +0000
commit6e757e42102ed2d09e5c209a79b6ef0992015904 (patch)
tree7c3d41b9e67af690e6b5c28325fd08e86f1b984e /sys/netpfil
parent8c24b92f981a0d316bfe1d024b4777120758c515 (diff)
downloadFreeBSD-src-6e757e42102ed2d09e5c209a79b6ef0992015904.zip
FreeBSD-src-6e757e42102ed2d09e5c209a79b6ef0992015904.tar.gz
Initialize error after r293626 in case neither INET nor INET6 is
compiled into the kernel. Ideally lots more code would just not be called (or compiled in) in that case but that requires a lot more surgery. For now try to make IP-less kernels compile again.
Diffstat (limited to 'sys/netpfil')
-rw-r--r--sys/netpfil/ipfw/ip_fw_table_algo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netpfil/ipfw/ip_fw_table_algo.c b/sys/netpfil/ipfw/ip_fw_table_algo.c
index e6b7f6f..75b2b67 100644
--- a/sys/netpfil/ipfw/ip_fw_table_algo.c
+++ b/sys/netpfil/ipfw/ip_fw_table_algo.c
@@ -3826,6 +3826,9 @@ 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);
OpenPOWER on IntegriCloud