summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2003-02-14 17:54:47 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2003-02-14 17:54:47 +0000
commite4664b8171e925e05fd7dd8c27434a490f07321a (patch)
treea11f66d4063f48485e51d787c381f5de07150e44 /sys
parentc57a3721fdd0ddc82a5c3e667e3b025b9bb081af (diff)
Fix an mbuf leak, where each incoming IPv6 TCP connection (to a listening
socket) would leak one MT_SONAME mbuf. ok deraadt@, henning@
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/tcp_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 6617d20e100..7a0b3ffec9c 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_input.c,v 1.124 2002/09/11 03:27:03 itojun Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.125 2003/02/14 17:54:46 dhartmei Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
@@ -1232,9 +1232,9 @@ findpcb:
(void) m_free(am);
goto drop;
}
- (void) m_free(am);
break;
}
+ (void) m_free(am);
tp->t_template = tcp_template(tp);
if (tp->t_template == 0) {
tp = tcp_drop(tp, ENOBUFS);