Fix NOINET6 build after r357038.

Reported by:	AN <andy at neu.net>
This commit is contained in:
Alexander V. Chernikov 2020-01-26 11:54:21 +00:00
parent 9677354790
commit 75831a1c95

View File

@ -371,9 +371,11 @@ div_output(struct socket *so, struct mbuf *m, struct sockaddr_in *sin,
case IPVERSION:
family = AF_INET;
break;
#ifdef INET6
case IPV6_VERSION >> 4:
family = AF_INET6;
break;
#endif
default:
m_freem(m);
return (EAFNOSUPPORT);