Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Aug 2012 20:08:45 +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-8@freebsd.org
Subject:   svn commit: r239147 - stable/8/sys/netinet
Message-ID:  <201208082008.q78K8jdm022533@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Wed Aug  8 20:08:45 2012
New Revision: 239147
URL: http://svn.freebsd.org/changeset/base/239147

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

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

Modified: stable/8/sys/netinet/sctp_pcb.c
==============================================================================
--- stable/8/sys/netinet/sctp_pcb.c	Wed Aug  8 20:05:25 2012	(r239146)
+++ stable/8/sys/netinet/sctp_pcb.c	Wed Aug  8 20:08:45 2012	(r239147)
@@ -2423,10 +2423,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?201208082008.q78K8jdm022533>