]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Fix no-Status protocol testing in Auth Resp error case
authorJouni Malinen <jouni@codeaurora.org>
Tue, 27 Nov 2018 15:20:41 +0000 (17:20 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 27 Nov 2018 15:20:41 +0000 (17:20 +0200)
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/common/dpp.c

index 702e3c303addc0b5d3a9dc463e43e32930eefddb..e7008c0bafcf66e0a77158890d8778bb92513f0a 100644 (file)
@@ -2854,7 +2854,7 @@ static int dpp_auth_build_resp_status(struct dpp_authentication *auth,
                i_pubkey_hash = test_hash;
        } else if (dpp_test == DPP_TEST_NO_STATUS_AUTH_RESP) {
                wpa_printf(MSG_INFO, "DPP: TESTING - no Status");
-               status = -1;
+               status = 255;
        } else if (dpp_test == DPP_TEST_NO_I_NONCE_AUTH_RESP) {
                wpa_printf(MSG_INFO, "DPP: TESTING - no I-nonce");
                i_nonce = NULL;