diff options
author | 2002-07-30 19:09:36 +0000 | |
---|---|---|
committer | 2002-07-30 19:09:36 +0000 | |
commit | c92b51c8d33064d7ccfd93b6273f4b964317c29e (patch) | |
tree | f57c9e143da1106b5e3c4707a56271c9ec92fb62 | |
parent | Bug/type found by tedu (diff) | |
download | wireguard-openbsd-c92b51c8d33064d7ccfd93b6273f4b964317c29e.tar.xz wireguard-openbsd-c92b51c8d33064d7ccfd93b6273f4b964317c29e.zip |
Be sure to check the integrity verifier for packets that didn't have it done
in hardware; from angelos
-rw-r--r-- | sys/netinet/ip_esp.c | 4 |
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); |