mirror of
https://github.com/curl/curl.git
synced 2026-04-24 18:12:13 +03:00
wolfssl: fix error check in shutdown
When trying to send the TLS shutdown, use the return code to check for the cause. Reported in Joshua's sarif data Closes #18729
This commit is contained in:
parent
15b4b96188
commit
dec661c81c
1 changed files with 2 additions and 1 deletions
|
|
@ -1921,7 +1921,8 @@ static CURLcode wssl_shutdown(struct Curl_cfilter *cf,
|
|||
* was not complete, we are lacking the close notify from the server. */
|
||||
if(send_shutdown) {
|
||||
wolfSSL_ERR_clear_error();
|
||||
if(wolfSSL_shutdown(wctx->ssl) == 1) {
|
||||
nread = wolfSSL_shutdown(wctx->ssl);
|
||||
if(nread == 1) {
|
||||
CURL_TRC_CF(data, cf, "SSL shutdown finished");
|
||||
*done = TRUE;
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue