diff options
author | Tobias Heider <tobhe@cvs.openbsd.org> | 2021-11-08 22:36:19 +0000 |
---|---|---|
committer | Tobias Heider <tobhe@cvs.openbsd.org> | 2021-11-08 22:36:19 +0000 |
commit | 431ff672e3e2f58f220565ce097a19d011f31731 (patch) | |
tree | acaabd2cebede5988657cfa47dd14d0844dbeff0 /sys | |
parent | 5a3078be71fd933e3ea003372bc3919d96684c57 (diff) |
Use plen consistently.
ok patrick@
Diffstat (limited to 'sys')
-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 a836e87722c..8a7089e911e 100644 --- a/sys/netinet/ip_esp.c +++ b/sys/netinet/ip_esp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_esp.c,v 1.185 2021/11/04 14:45:07 tobhe Exp $ */ +/* $OpenBSD: ip_esp.c,v 1.186 2021/11/08 22:36:18 tobhe Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr) and @@ -502,7 +502,7 @@ esp_input(struct mbuf **mp, struct tdb *tdb, int skip, int protoff) if (crde->crd_alg == CRYPTO_AES_GMAC) crde->crd_len = 0; else - crde->crd_len = m->m_pkthdr.len - (skip + hlen + alen); + crde->crd_len = plen; } KERNEL_LOCK(); |