svn commit: r239147 - stable/8/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Wed Aug 8 20:08:46 UTC 2012


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,


More information about the svn-src-stable-8 mailing list