]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[wpa] Fix erroneous debug message in wpa_derive_ptk
authorMichael Brown <mcb30@ipxe.org>
Tue, 21 Jul 2020 14:34:39 +0000 (15:34 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 21 Jul 2020 14:34:39 +0000 (15:34 +0100)
Split debug message since eth_ntoa() uses a static result buffer.

Originally-fixed-by: Michael Bazzinotti <bazz@bazz1.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/80211/wpa.c

index 77f66d825b07b769aa119f5a0765128731ec7989..5ec5005bfd6edb969a8dc9d25bfbfa73d68adf09 100644 (file)
@@ -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 );