mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Return NULL rather than 0 for a pointer.
MFC after: 3 days
This commit is contained in:
parent
85011246ac
commit
cd292f1264
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue