summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctputil.c
diff options
context:
space:
mode:
authorrrs <rrs@FreeBSD.org>2008-07-31 11:08:30 +0000
committerrrs <rrs@FreeBSD.org>2008-07-31 11:08:30 +0000
commit7818f3ed80d17fe337ebaa5b51ecf26b785c41c7 (patch)
tree0e033aa257d8146537bb1dea4adc81527d15a2ef /sys/netinet/sctputil.c
parentb8596e4794a3aeb4fb1425b04700669f545743de (diff)
downloadFreeBSD-src-7818f3ed80d17fe337ebaa5b51ecf26b785c41c7.zip
FreeBSD-src-7818f3ed80d17fe337ebaa5b51ecf26b785c41c7.tar.gz
Adds support for the SCTP_PORT_REUSE option
Fixes a refcount bug found in the process Obtained from: With the help of Michael Tuexen
Diffstat (limited to 'sys/netinet/sctputil.c')
-rw-r--r--sys/netinet/sctputil.c2
1 files changed, 1 insertions, 1 deletions
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 */
OpenPOWER on IntegriCloud