From: Michael Brown Date: Tue, 21 Jul 2020 14:34:39 +0000 (+0100) Subject: [wpa] Fix erroneous debug message in wpa_derive_ptk X-Git-Tag: v1.21.1~116 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee2dc525b494b03e860778c9c657ad1f93b0203c;p=thirdparty%2Fipxe.git [wpa] Fix erroneous debug message in wpa_derive_ptk Split debug message since eth_ntoa() uses a static result buffer. Originally-fixed-by: Michael Bazzinotti Signed-off-by: Michael Brown --- diff --git a/src/net/80211/wpa.c b/src/net/80211/wpa.c index 77f66d825..5ec5005bf 100644 --- a/src/net/80211/wpa.c +++ b/src/net/80211/wpa.c @@ -304,8 +304,9 @@ static void wpa_derive_ptk ( struct wpa_common_ctx *ctx ) memcpy ( ptk_data.nonce2, ctx->Anonce, WPA_NONCE_LEN ); } - DBGC2 ( ctx, "WPA %p A1 %s, A2 %s\n", ctx, eth_ntoa ( ptk_data.mac1 ), - eth_ntoa ( ptk_data.mac2 ) ); + DBGC2 ( ctx, "WPA %p A1 %s", ctx, eth_ntoa ( ptk_data.mac1 ) ); + DBGC2 ( ctx, ", A2 %s\n", eth_ntoa ( ptk_data.mac2 ) ); + DBGC2 ( ctx, "WPA %p Nonce1, Nonce2:\n", ctx ); DBGC2_HD ( ctx, ptk_data.nonce1, WPA_NONCE_LEN ); DBGC2_HD ( ctx, ptk_data.nonce2, WPA_NONCE_LEN );