Return NULL rather than 0 for a pointer.
MFC after: 3 days
This commit is contained in:
parent
85011246ac
commit
cd292f1264
@ -1728,7 +1728,7 @@ ifaof_ifpforaddr(struct sockaddr *addr, struct ifnet *ifp)
|
||||
u_int af = addr->sa_family;
|
||||
|
||||
if (af >= AF_MAX)
|
||||
return (0);
|
||||
return (NULL);
|
||||
IF_ADDR_LOCK(ifp);
|
||||
TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) {
|
||||
if (ifa->ifa_addr->sa_family != af)
|
||||
|
Loading…
x
Reference in New Issue
Block a user