summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2022-07-22 20:37:57 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2022-07-22 20:37:57 +0000
commit4baa8b5169d98cdc4f2412a722514fa1c1aa467c (patch)
treec521f87fe519595175153738e7843657a13449d7 /usr.sbin
parentb352fcac66ced984aea78e84cbf157765e1eea1e (diff)
In tcpdump(8), fix use of wrong index into 802.11 PMKID data when multiple
PMKIDs are present. Same error as found by Mikhail for ciphers and AKMs.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/tcpdump/print-802_11.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/print-802_11.c b/usr.sbin/tcpdump/print-802_11.c
index 610c07abbe1..b6b7ade0f2e 100644
--- a/usr.sbin/tcpdump/print-802_11.c
+++ b/usr.sbin/tcpdump/print-802_11.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print-802_11.c,v 1.43 2022/07/22 20:31:45 stsp Exp $ */
+/* $OpenBSD: print-802_11.c,v 1.44 2022/07/22 20:37:56 stsp Exp $ */
/*
* Copyright (c) 2005 Reyk Floeter <reyk@openbsd.org>
@@ -971,7 +971,7 @@ ieee80211_print_rsn(u_int8_t *data, u_int len)
for (i = 0; i < npmk; i++) {
printf("0x");
for (j = 0; j < IEEE80211_PMKID_LEN; j++)
- printf("%x", data[i + j]);
+ printf("%x", data[j]);
if (i < npmk - 1)
printf(" ");
data += IEEE80211_PMKID_LEN;