From: Jouni Malinen Date: Wed, 12 Aug 2020 08:52:25 +0000 (+0300) Subject: DPP2: Do not close TCP socket when waiting for full Auth Resp X-Git-Tag: hostap_2_10~1022 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e956c37d2237581c1f31bd86d1972c8d46d0c29;p=thirdparty%2Fhostap.git 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 --- 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);