Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Add a KASSERT.
details: https://anonhg.NetBSD.org/src/rev/27a8904d1c7f
branches: trunk
changeset: 829775:27a8904d1c7f
user: maxv <maxv%NetBSD.org@localhost>
date: Mon Feb 12 08:13:08 2018 +0000
description:
Add a KASSERT.
diffstat:
sys/netinet/tcp_input.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 94cf7dfd80b3 -r 27a8904d1c7f sys/netinet/tcp_input.c
--- a/sys/netinet/tcp_input.c Mon Feb 12 08:08:28 2018 +0000
+++ b/sys/netinet/tcp_input.c Mon Feb 12 08:13:08 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_input.c,v 1.377 2018/02/12 08:08:28 maxv Exp $ */
+/* $NetBSD: tcp_input.c,v 1.378 2018/02/12 08:13:08 maxv Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -148,7 +148,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.377 2018/02/12 08:08:28 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.378 2018/02/12 08:13:08 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1616,6 +1616,8 @@
union syn_cache_sa src;
union syn_cache_sa dst;
+ KASSERT(tp->t_state == TCPS_LISTEN);
+
memset(&src, 0, sizeof(src));
memset(&dst, 0, sizeof(dst));
switch (af) {
Home |
Main Index |
Thread Index |
Old Index