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.
This commit is contained in:
Bjoern A. Zeeb 2016-01-10 08:14:25 +00:00
parent 5d86098e84
commit 60c274aaf8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=293629

View File

@ -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);