From 2e956c37d2237581c1f31bd86d1972c8d46d0c29 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 12 Aug 2020 11:52:25 +0300 Subject: [PATCH] DPP2: Do not close TCP socket when waiting for full Auth Resp The case where mutual authentication with QR Code bootstrapping is used with scanning of the QR Code during the exchange resulted in the Controller closing the TCP socket too early. Fix this by leaving the socket open while waiting for the full Authentication Response message. Signed-off-by: Jouni Malinen --- src/common/dpp_tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/dpp_tcp.c b/src/common/dpp_tcp.c index 53fe67f81..90dd38fc0 100644 --- a/src/common/dpp_tcp.c +++ b/src/common/dpp_tcp.c @@ -661,7 +661,7 @@ static int dpp_controller_rx_auth_resp(struct dpp_connection *conn, if (auth->auth_resp_status == DPP_STATUS_RESPONSE_PENDING) { wpa_printf(MSG_DEBUG, "DPP: Start wait for full response"); - return -1; + return 0; } wpa_printf(MSG_DEBUG, "DPP: No confirm generated"); dpp_connection_remove(conn);