summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorangelos <angelos@openbsd.org>2001-03-06 06:29:16 +0000
committerangelos <angelos@openbsd.org>2001-03-06 06:29:16 +0000
commitc906699d95c6fb5bf8c664cf1141bfdd85d55af0 (patch)
treef7fbdcf7b6e56f4f5a04e8222d3cd7f4bd2578fc
parentsftp -b batchfile; mouring@etoh.eviladmin.org (diff)
downloadwireguard-openbsd-c906699d95c6fb5bf8c664cf1141bfdd85d55af0.tar.xz
wireguard-openbsd-c906699d95c6fb5bf8c664cf1141bfdd85d55af0.zip
Eeep, don't reset the checksum when checking it! Noticed by bugfix@123.net
-rw-r--r--sys/net/if_bridge.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c
index 32f64ae0a8b..780b4a79913 100644
--- a/sys/net/if_bridge.c
+++ b/sys/net/if_bridge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bridge.c,v 1.51 2001/03/05 03:38:38 angelos Exp $ */
+/* $OpenBSD: if_bridge.c,v 1.52 2001/03/06 06:29:16 angelos Exp $ */
/*
* Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net)
@@ -1929,7 +1929,6 @@ bridge_filter(sc, ifp, eh, m)
ip = mtod(m, struct ip *);
}
- ip->ip_sum = 0;
if ((ip->ip_sum = in_cksum(m, hlen)) != 0)
goto dropit;