From 89b6d8a2f0123e1bc28623fcfefe85a2d4ca4552 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 27 Nov 2018 17:20:41 +0200 Subject: [PATCH] DPP: Fix no-Status protocol testing in Auth Resp error case Signed-off-by: Jouni Malinen --- src/common/dpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/dpp.c b/src/common/dpp.c index 702e3c303..e7008c0ba 100644 --- a/src/common/dpp.c +++ b/src/common/dpp.c @@ -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;