Return NULL rather than 0 for a pointer.
MFC after: 3 days
This commit is contained in:
parent
85011246ac
commit
cd292f1264
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210532
@ -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…
Reference in New Issue
Block a user