vtls: properly handle SSL shutdown timeout

Closes #19323
This commit is contained in:
x2018 2025-11-01 23:28:07 +08:00 committed by Daniel Stenberg
parent f6bbc2b3be
commit e2a12fcbdb
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -1858,7 +1858,8 @@ static CURLcode vtls_shutdown_blocking(struct Curl_cfilter *cf,
if(timeout_ms < 0) {
/* no need to continue if time is already up */
failf(data, "SSL shutdown timeout");
return CURLE_OPERATION_TIMEDOUT;
result = CURLE_OPERATION_TIMEDOUT;
goto out;
}
result = connssl->ssl_impl->shut_down(cf, data, send_shutdown, done);