socks_sspi: restore non-blocking socket on error paths

Closes #18592
This commit is contained in:
Joshua Rogers 2025-09-18 03:43:11 +05:00 committed by Daniel Stenberg
parent 20f757ef14
commit 4e74b9f592
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -559,6 +559,7 @@ CURLcode Curl_SOCKS5_gssapi_negotiate(struct Curl_cfilter *cf,
*/
return CURLE_OK;
error:
(void)curlx_nonblock(sock, TRUE);
free(service_name);
Curl_pSecFn->FreeCredentialsHandle(&cred_handle);
Curl_pSecFn->DeleteSecurityContext(&sspi_context);