Use the reference count of the right SCTP inp.
Joint work with rrs@ MFC after: 3 days
This commit is contained in:
parent
b9a9d9ca9b
commit
d9bdc5200a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=280634
@ -6953,7 +6953,7 @@ sctp_listen(struct socket *so, int backlog, struct thread *p)
|
||||
SCTP_INP_DECR_REF(tinp);
|
||||
return (EADDRINUSE);
|
||||
} else if (tinp) {
|
||||
SCTP_INP_DECR_REF(inp);
|
||||
SCTP_INP_DECR_REF(tinp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user