Author: tuexen
Date: Wed Mar 25 21:41:20 2015
New Revision: 280634
URL: https://svnweb.freebsd.org/changeset/base/280634

Log:
  Use the reference count of the right SCTP inp.
  Joint work with rrs@
  
  MFC after: 3 days

Modified:
  head/sys/netinet/sctp_usrreq.c

Modified: head/sys/netinet/sctp_usrreq.c
==============================================================================
--- head/sys/netinet/sctp_usrreq.c      Wed Mar 25 21:31:36 2015        
(r280633)
+++ head/sys/netinet/sctp_usrreq.c      Wed Mar 25 21:41:20 2015        
(r280634)
@@ -6953,7 +6953,7 @@ sctp_listen(struct socket *so, int backl
                                SCTP_INP_DECR_REF(tinp);
                                return (EADDRINUSE);
                        } else if (tinp) {
-                               SCTP_INP_DECR_REF(inp);
+                               SCTP_INP_DECR_REF(tinp);
                        }
                }
        }
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to