summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>1995-09-13 17:36:31 +0000
committerGarrett Wollman <wollman@FreeBSD.org>1995-09-13 17:36:31 +0000
commit51823c3a93f2d353bf308cf0f3a594922d75826c (patch)
treee6bf5d8ea8516760fd45e3321cc88b12eb803e7a /sys/netinet
parent02c78a9c21d84f1ca826d032b220fc0c1930590a (diff)
Notes
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/tcp_output.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c
index 33a6b83717b4..6c7ccd18eb21 100644
--- a/sys/netinet/tcp_output.c
+++ b/sys/netinet/tcp_output.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_output.c 8.3 (Berkeley) 12/30/93
- * $Id: tcp_output.c,v 1.10 1995/05/09 13:35:47 davidg Exp $
+ * $Id: tcp_output.c,v 1.11 1995/05/30 08:09:56 rgrimes Exp $
*/
#include <sys/param.h>
@@ -486,8 +486,11 @@ send:
m->m_len += len;
} else {
m->m_next = m_copy(so->so_snd.sb_mb, off, (int) len);
- if (m->m_next == 0)
- len = 0;
+ if (m->m_next == 0) {
+ m_free(m);
+ error = ENOBUFS;
+ goto out;
+ }
}
#endif
/*