summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTobias Heider <tobhe@cvs.openbsd.org>2021-12-20 17:09:19 +0000
committerTobias Heider <tobhe@cvs.openbsd.org>2021-12-20 17:09:19 +0000
commit97fd4c1eb24ba663ec20348ea6a2fb3a92526d39 (patch)
tree301c5c5dd9338ad0a29471eddc1cc3a9be639e9a /sys
parentb4152a80980e2e98cde2ddd48d37dd1a15623da0 (diff)
Remove unused variable 'clen'.
ok bluhm@
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_ah.c7
-rw-r--r--sys/netinet/ip_esp.c6
2 files changed, 4 insertions, 9 deletions
diff --git a/sys/netinet/ip_ah.c b/sys/netinet/ip_ah.c
index 0580f385206..54ca7658fc3 100644
--- a/sys/netinet/ip_ah.c
+++ b/sys/netinet/ip_ah.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ah.c,v 1.170 2021/12/20 15:59:09 mvs Exp $ */
+/* $OpenBSD: ip_ah.c,v 1.171 2021/12/20 17:09:18 tobhe Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -537,7 +537,7 @@ ah_input(struct mbuf **mp, struct tdb *tdb, int skip, int protoff)
uint32_t btsx, esn;
uint8_t *ptr = NULL;
uint8_t hl;
- int error, rplen, clen;
+ int error, rplen;
uint64_t ibytes;
#ifdef ENCDEBUG
char buf[INET6_ADDRSTRLEN];
@@ -700,9 +700,6 @@ ah_input(struct mbuf **mp, struct tdb *tdb, int skip, int protoff)
goto drop;
}
- /* Length of data after processing */
- clen = crp->crp_olen;
-
/* Release the crypto descriptors */
crypto_freereq(crp);
crp = NULL;
diff --git a/sys/netinet/ip_esp.c b/sys/netinet/ip_esp.c
index 4d368e9af77..ee43d9e6398 100644
--- a/sys/netinet/ip_esp.c
+++ b/sys/netinet/ip_esp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_esp.c,v 1.190 2021/12/20 15:59:09 mvs Exp $ */
+/* $OpenBSD: ip_esp.c,v 1.191 2021/12/20 17:09:18 tobhe Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -347,7 +347,7 @@ esp_input(struct mbuf **mp, struct tdb *tdb, int skip, int protoff)
struct mbuf *m = *mp, *m1, *mo;
struct cryptodesc *crde = NULL, *crda = NULL;
struct cryptop *crp = NULL;
- int plen, alen, hlen, error, clen, roff;
+ int plen, alen, hlen, error, roff;
uint32_t btsx, esn;
#ifdef ENCDEBUG
char buf[INET6_ADDRSTRLEN];
@@ -515,8 +515,6 @@ esp_input(struct mbuf **mp, struct tdb *tdb, int skip, int protoff)
goto drop;
}
- clen = crp->crp_olen;
-
/* Release the crypto descriptors */
crypto_freereq(crp);
crp = NULL;