Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Aug 2012 16:45:46 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r239448 - stable/9/sys/netinet
Message-ID:  <201208201645.q7KGjkct063427@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Mon Aug 20 16:45:46 2012
New Revision: 239448
URL: http://svn.freebsd.org/changeset/base/239448

Log:
  MFC r239052:
  Fix a refcount issue. The caller only decrements if stcb is NULL.

Modified:
  stable/9/sys/netinet/sctp_pcb.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/netinet/sctp_pcb.c
==============================================================================
--- stable/9/sys/netinet/sctp_pcb.c	Mon Aug 20 16:42:45 2012	(r239447)
+++ stable/9/sys/netinet/sctp_pcb.c	Mon Aug 20 16:45:46 2012	(r239448)
@@ -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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208201645.q7KGjkct063427>