Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Aug 2012 10:47:18 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r239052 - head/sys/netinet
Message-ID:  <201208051047.q75AlIVi074578@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Sun Aug  5 10:47:18 2012
New Revision: 239052
URL: http://svn.freebsd.org/changeset/base/239052

Log:
  Fix a refcount issue. The called only decrements is stcb is NULL.
  
  MFC after:	3 days
  Discussed with:	rrs

Modified:
  head/sys/netinet/sctp_pcb.c

Modified: head/sys/netinet/sctp_pcb.c
==============================================================================
--- head/sys/netinet/sctp_pcb.c	Sun Aug  5 10:12:27 2012	(r239051)
+++ head/sys/netinet/sctp_pcb.c	Sun Aug  5 10:47:18 2012	(r239052)
@@ -2308,10 +2308,9 @@ sctp_findassociation_ep_asconf(struct mb
 	if (zero_address) {
 		stcb = sctp_findassoc_by_vtag(NULL, dst, 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?201208051047.q75AlIVi074578>