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,
_______________________________________________
svn-src-stable-9@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "svn-src-stable-9-unsubscr...@freebsd.org"

Reply via email to