Reported by:		syzbot+f3a6fccfa6ae9d3ded29@syzkaller.appspotmail.com
MFC after:		1 week
This commit is contained in:
tuexen 2020-06-30 21:50:05 +00:00
parent 1ce5100905
commit 3a67faed10

View File

@ -5247,7 +5247,11 @@ sctp_find_ifa_in_ep(struct sctp_inpcb *inp, struct sockaddr *addr,
if (holds_lock == 0) {
SCTP_INP_RUNLOCK(inp);
}
return (laddr->ifa);
if (laddr != NULL) {
return (laddr->ifa);
} else {
return (NULL);
}
}
uint32_t