1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Use the reference count of the right SCTP inp.

Joint work with rrs@

MFC after: 3 days
This commit is contained in:
Michael Tuexen 2015-03-25 21:41:20 +00:00
parent b9a9d9ca9b
commit d9bdc5200a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=280634

View File

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