summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_esp.c
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2021-12-23 22:35:12 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2021-12-23 22:35:12 +0000
commit44be44b5d37a6b3271dccbe00720a6a069988a76 (patch)
tree31b4ac0f4ec44b96b6f38852a74aa970db4a7f76 /sys/netinet/ip_esp.c
parentefc87d7d5954535b43fbe94053c35b41975b19b0 (diff)
Remove unused variables and assignments in ah and esp output.
found by clang 13; OK tobhe@
Diffstat (limited to 'sys/netinet/ip_esp.c')
-rw-r--r--sys/netinet/ip_esp.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/netinet/ip_esp.c b/sys/netinet/ip_esp.c
index a3e8e5f8689..f904b6ddfaf 100644
--- a/sys/netinet/ip_esp.c
+++ b/sys/netinet/ip_esp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_esp.c,v 1.192 2021/12/23 12:21:48 bluhm Exp $ */
+/* $OpenBSD: ip_esp.c,v 1.193 2021/12/23 22:35:11 bluhm Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -690,7 +690,7 @@ esp_output(struct mbuf *m, struct tdb *tdb, int skip, int protoff)
{
const struct enc_xform *espx = tdb->tdb_encalgxform;
const struct auth_hash *esph = tdb->tdb_authalgxform;
- int ilen, olen, hlen, rlen, padding, blks, alen, roff, error;
+ int ilen, hlen, rlen, padding, blks, alen, roff, error;
uint64_t replay64;
uint32_t replay;
struct mbuf *mi, *mo = (struct mbuf *) NULL;
@@ -957,9 +957,6 @@ esp_output(struct mbuf *m, struct tdb *tdb, int skip, int protoff)
goto drop;
}
- ilen = crp->crp_ilen;
- olen = crp->crp_olen;
-
/* Release the crypto descriptors */
crypto_freereq(crp);