guard against bogus address data
Submitted by: Bakul Shah
This commit is contained in:
parent
d9d99c5478
commit
eb2a391f14
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146426
@ -869,7 +869,7 @@ status(const struct afswtch *afp, int addrcount, struct sockaddr_dl *sdl,
|
|||||||
if (allfamilies) {
|
if (allfamilies) {
|
||||||
const struct afswtch *p;
|
const struct afswtch *p;
|
||||||
p = af_getbyfamily(info.rti_info[RTAX_IFA]->sa_family);
|
p = af_getbyfamily(info.rti_info[RTAX_IFA]->sa_family);
|
||||||
if (p != NULL)
|
if (p != NULL && p->af_status != NULL)
|
||||||
p->af_status(s, &info);
|
p->af_status(s, &info);
|
||||||
} else if (afp->af_af == info.rti_info[RTAX_IFA]->sa_family)
|
} else if (afp->af_af == info.rti_info[RTAX_IFA]->sa_family)
|
||||||
afp->af_status(s, &info);
|
afp->af_status(s, &info);
|
||||||
|
Loading…
Reference in New Issue
Block a user