[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 <bazz@bazz1.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
pull/124/head
Michael Brown 2020-07-21 15:34:39 +01:00
parent 0de5e60144
commit ee2dc525b4
1 changed files with 3 additions and 2 deletions

View 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 );