From: stsp Date: Fri, 22 Jul 2022 20:37:56 +0000 (+0000) Subject: In tcpdump(8), fix use of wrong index into 802.11 PMKID data when multiple X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=46e5e1a23004a45f7c91c8f8942f81028bf44632;p=openbsd 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. --- 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 @@ -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;