summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-07-30 19:09:37 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-07-30 19:09:37 +0000
commit0a32f4e37b58273ff3f941ffeee97b7353ff4f92 (patch)
tree642db40acf8669bf3a4e4d47c091789adea17873 /sys/netinet
parent3b810110e53f5d95b8e082dff0f37dd4886f44ff (diff)
Be sure to check the integrity verifier for packets that didn't have it done
in hardware; from angelos
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_esp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_esp.c b/sys/netinet/ip_esp.c
index 4a3e0797e95..371aabc669b 100644
--- a/sys/netinet/ip_esp.c
+++ b/sys/netinet/ip_esp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_esp.c,v 1.74 2002/07/05 23:20:53 angelos Exp $ */
+/* $OpenBSD: ip_esp.c,v 1.75 2002/07/30 19:09:36 jason Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -515,7 +515,7 @@ esp_input_cb(void *op)
* If we have a tag, it means an IPsec-aware NIC did the verification
* for us.
*/
- if (mtag != NULL) {
+ if (mtag == NULL) {
/* Copy the authenticator from the packet */
m_copydata(m, m->m_pkthdr.len - esph->authsize,
esph->authsize, aalg);