svn commit: r239452 - releng/9.1/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Mon Aug 20 17:36:11 UTC 2012
Author: tuexen
Date: Mon Aug 20 17:36:10 2012
New Revision: 239452
URL: http://svn.freebsd.org/changeset/base/239452
Log:
MFC r239052:
Fix a refcount issue. The caller only decrements if stcb is NULL.
Approved by: re (kib)
Modified:
releng/9.1/sys/netinet/sctp_pcb.c
Directory Properties:
releng/9.1/sys/ (props changed)
Modified: releng/9.1/sys/netinet/sctp_pcb.c
==============================================================================
--- releng/9.1/sys/netinet/sctp_pcb.c Mon Aug 20 17:06:50 2012 (r239451)
+++ releng/9.1/sys/netinet/sctp_pcb.c Mon Aug 20 17:36:10 2012 (r239452)
@@ -2417,10 +2417,9 @@ sctp_findassociation_ep_asconf(struct mb
if (zero_address) {
stcb = sctp_findassoc_by_vtag(NULL, to, ntohl(sh->v_tag), inp_p,
netp, sh->src_port, sh->dest_port, 1, vrf_id, 0);
- /*
- * SCTP_PRINTF("findassociation_ep_asconf: zero lookup
- * address finds stcb 0x%x\n", (uint32_t)stcb);
- */
+ if (stcb != NULL) {
+ SCTP_INP_DECR_REF(*inp_p);
+ }
} else {
stcb = sctp_findassociation_ep_addr(inp_p,
(struct sockaddr *)&remote_store, netp,
More information about the svn-src-all
mailing list