1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

Fix a refcount issue. The called only decrements is stcb is NULL.

MFC after:	3 days
Discussed with:	rrs
This commit is contained in:
Michael Tuexen 2012-08-05 10:47:18 +00:00
parent 46634305f4
commit 63c6726e05
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=239052

View File

@ -2308,10 +2308,9 @@ sctp_findassociation_ep_asconf(struct mbuf *m, int offset,
if (zero_address) { if (zero_address) {
stcb = sctp_findassoc_by_vtag(NULL, dst, ntohl(sh->v_tag), inp_p, stcb = sctp_findassoc_by_vtag(NULL, dst, ntohl(sh->v_tag), inp_p,
netp, sh->src_port, sh->dest_port, 1, vrf_id, 0); netp, sh->src_port, sh->dest_port, 1, vrf_id, 0);
/* if (stcb != NULL) {
* SCTP_PRINTF("findassociation_ep_asconf: zero lookup SCTP_INP_DECR_REF(*inp_p);
* address finds stcb 0x%x\n", (uint32_t)stcb); }
*/
} else { } else {
stcb = sctp_findassociation_ep_addr(inp_p, stcb = sctp_findassociation_ep_addr(inp_p,
(struct sockaddr *)&remote_store, netp, (struct sockaddr *)&remote_store, netp,