From 7818f3ed80d17fe337ebaa5b51ecf26b785c41c7 Mon Sep 17 00:00:00 2001 From: rrs Date: Thu, 31 Jul 2008 11:08:30 +0000 Subject: Adds support for the SCTP_PORT_REUSE option Fixes a refcount bug found in the process Obtained from: With the help of Michael Tuexen --- sys/netinet/sctputil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/netinet/sctputil.c') diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c index 9a15d6b..dc215bd 100644 --- a/sys/netinet/sctputil.c +++ b/sys/netinet/sctputil.c @@ -6351,7 +6351,7 @@ sctp_bindx_add_address(struct socket *so, struct sctp_inpcb *inp, * ep already and are binding. No remove going on * here. */ - SCTP_INP_DECR_REF(inp); + SCTP_INP_DECR_REF(lep); } if (lep == inp) { /* already bound to it.. ok */ -- cgit v1.1