]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
vtls: properly handle SSL shutdown timeout
authorx2018 <xkernel.wang@foxmail.com>
Sat, 1 Nov 2025 15:28:07 +0000 (23:28 +0800)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 1 Nov 2025 22:28:40 +0000 (23:28 +0100)
Closes #19323

lib/vtls/vtls.c

index 22d820b1602e9bf2e8ee475b1047eb757e8e98ed..df0449cbeee6e1f49af8f53023fd94600e92d976 100644 (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);