Fix a bug introduced in https://svnweb.freebsd.org/changeset/base/362173
Reported by: syzbot+f3a6fccfa6ae9d3ded29@syzkaller.appspotmail.com MFC after: 1 week
This commit is contained in:
parent
1ce5100905
commit
3a67faed10
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user