diff options
author | Tobias Heider <tobhe@cvs.openbsd.org> | 2021-10-25 09:47:03 +0000 |
---|---|---|
committer | Tobias Heider <tobhe@cvs.openbsd.org> | 2021-10-25 09:47:03 +0000 |
commit | ce9c65b9c654a0faeb119fa75291b9fb4a48474f (patch) | |
tree | 7524faf56393d6870b518d74cfe6d9d72d8c76b9 /sys | |
parent | 9aee923c56df379f3aa5e2f360c5520fad64733b (diff) |
Fix use of uninitialized variable 'rpl'.
Found by jsg@
ok patrick@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/ip_ah.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/ip_ah.c b/sys/netinet/ip_ah.c index 0a9a4fbbc04..140065807c4 100644 --- a/sys/netinet/ip_ah.c +++ b/sys/netinet/ip_ah.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ah.c,v 1.164 2021/10/24 22:34:19 tobhe Exp $ */ +/* $OpenBSD: ip_ah.c,v 1.165 2021/10/25 09:47:02 tobhe Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr) and @@ -539,7 +539,6 @@ ah_input(struct mbuf **mp, struct tdb *tdb, int skip, int protoff) uint8_t hl; int error, rplen, clen; uint64_t ibytes; - uint64_t rpl; #ifdef ENCDEBUG char buf[INET6_ADDRSTRLEN]; #endif @@ -740,7 +739,7 @@ ah_input(struct mbuf **mp, struct tdb *tdb, int skip, int protoff) sizeof(u_int32_t), &btsx); btsx = ntohl(btsx); - switch (checkreplaywindow(tdb, rpl, btsx, &esn, 1)) { + switch (checkreplaywindow(tdb, tdb->tdb_rpl, btsx, &esn, 1)) { case 0: /* All's well. */ #if NPFSYNC > 0 pfsync_update_tdb(tdb,0); |