Return NULL rather than 0 for a pointer.

MFC after:	3 days
This commit is contained in:
Bjoern A. Zeeb 2010-07-27 11:54:01 +00:00
parent 85011246ac
commit cd292f1264
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210532

View File

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