summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgerhard <gerhard@openbsd.org>2013-10-11 10:58:42 +0000
committergerhard <gerhard@openbsd.org>2013-10-11 10:58:42 +0000
commit8a779c9fc0666f18c00f03589436adefee80d905 (patch)
tree7124cdf7dfda035df67c0c1cb943413dcf32df49
parentDon't leak file descriptors in the rare MSG_VERSION case. From Chris (diff)
downloadwireguard-openbsd-8a779c9fc0666f18c00f03589436adefee80d905.tar.xz
wireguard-openbsd-8a779c9fc0666f18c00f03589436adefee80d905.zip
Prevent non-data packets from being dropped.
ok bluhm@ mikeb@
-rw-r--r--sys/net/pf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index 78d63d304d2..eed83413c25 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.841 2013/10/09 09:32:01 camield Exp $ */
+/* $OpenBSD: pf.c,v 1.842 2013/10/11 10:58:42 gerhard Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -3940,7 +3940,7 @@ pf_tcp_track_full(struct pf_pdesc *pd, struct pf_state_peer *src,
if (seq == end) {
/* Ease sequencing restrictions on no data packets */
seq = src->seqlo;
- end = seq;
+ data_end = end = seq;
}
ackskew = dst->seqlo - ack;