Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Add XXX.
details: https://anonhg.NetBSD.org/src/rev/7afe874cad62
branches: trunk
changeset: 319280:7afe874cad62
user: maxv <maxv%NetBSD.org@localhost>
date: Wed May 23 18:40:29 2018 +0000
description:
Add XXX.
diffstat:
sys/netinet/tcp_subr.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 41e7679194e5 -r 7afe874cad62 sys/netinet/tcp_subr.c
--- a/sys/netinet/tcp_subr.c Wed May 23 16:04:13 2018 +0000
+++ b/sys/netinet/tcp_subr.c Wed May 23 18:40:29 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_subr.c,v 1.279 2018/05/03 07:13:48 maxv Exp $ */
+/* $NetBSD: tcp_subr.c,v 1.280 2018/05/23 18:40:29 maxv Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -91,7 +91,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_subr.c,v 1.279 2018/05/03 07:13:48 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_subr.c,v 1.280 2018/05/23 18:40:29 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1918,6 +1918,10 @@
if (tp->t_in6pcb)
mss -= ip6_optlen(tp->t_in6pcb);
#endif
+ /*
+ * XXX XXX What if mss goes negative or zero? This can happen if a
+ * socket has large IPv6 options. We crash below.
+ */
/*
* If there's a pipesize, change the socket buffer to that size.
Home |
Main Index |
Thread Index |
Old Index