Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet tcp_urp_drop: fix a bug introduced in 1.390 rev ...
details: https://anonhg.NetBSD.org/src/rev/4aee63f52337
branches: trunk
changeset: 360765:4aee63f52337
user: rmind <rmind%NetBSD.org@localhost>
date: Thu Mar 29 21:40:53 2018 +0000
description:
tcp_urp_drop: fix a bug introduced in 1.390 rev (hi maxv@).
diffstat:
sys/netinet/tcp_input.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 808f910a3224 -r 4aee63f52337 sys/netinet/tcp_input.c
--- a/sys/netinet/tcp_input.c Thu Mar 29 19:11:17 2018 +0000
+++ b/sys/netinet/tcp_input.c Thu Mar 29 21:40:53 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_input.c,v 1.400 2018/03/29 18:54:48 maxv Exp $ */
+/* $NetBSD: tcp_input.c,v 1.401 2018/03/29 21:40:53 rmind 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.400 2018/03/29 18:54:48 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_input.c,v 1.401 2018/03/29 21:40:53 rmind Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -340,7 +340,7 @@
static void
tcp_urp_drop(struct tcphdr *th, int todrop, int *tiflags)
{
- if (th->th_urp > 1) {
+ if (th->th_urp > todrop) {
th->th_urp -= todrop;
} else {
*tiflags &= ~TH_URG;
Home |
Main Index |
Thread Index |
Old Index