Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys/netinet pullup 1.113 -> 1.114 (approved by releng-1-5)
details: https://anonhg.NetBSD.org/src/rev/59c630ffd809
branches: netbsd-1-5
changeset: 488678:59c630ffd809
user: itojun <itojun%NetBSD.org@localhost>
date: Sun Jul 23 07:27:11 2000 +0000
description:
pullup 1.113 -> 1.114 (approved by releng-1-5)
add an DIAGNOSTIC case for MCLBYTES assumption
diffstat:
sys/netinet/tcp_input.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 0d35435b4d7e -r 59c630ffd809 sys/netinet/tcp_input.c
--- a/sys/netinet/tcp_input.c Sun Jul 23 05:38:53 2000 +0000
+++ b/sys/netinet/tcp_input.c Sun Jul 23 07:27:11 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_input.c,v 1.108.4.4 2000/07/23 05:25:07 itojun Exp $ */
+/* $NetBSD: tcp_input.c,v 1.108.4.5 2000/07/23 07:27:11 itojun Exp $ */
/*
%%% portions-copyright-nrl-95
@@ -3361,6 +3361,10 @@
*/
if (m)
m_freem(m);
+#ifdef DIAGNOSTIC
+ if (max_linkhdr + tlen > MCLBYTES)
+ return (ENOBUFS);
+#endif
MGETHDR(m, M_DONTWAIT, MT_DATA);
if (m && tlen > MHLEN) {
MCLGET(m, M_DONTWAIT);
Home |
Main Index |
Thread Index |
Old Index