summaryrefslogtreecommitdiff
path: root/lib/vtls
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-07-05 17:55:24 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-07-07 10:19:28 +0200
commit1e488d38c966ec9b8838f5766c88f6092d06a7d8 (patch)
treec27e7b4c779ed94297898803b401846f84c0146b /lib/vtls
parentae8e11ed5fd2ceefc17f007d90f221f67f0c2e26 (diff)
downloadcurl-1e488d38c966ec9b8838f5766c88f6092d06a7d8.tar.gz
wolfssl: failing to set a session id is not reason to error out
... as it is *probably* just timed out. Reported-by: Francisco Munoz Closes #7358
Diffstat (limited to 'lib/vtls')
-rw-r--r--lib/vtls/wolfssl.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/vtls/wolfssl.c b/lib/vtls/wolfssl.c
index 8d217ec54..d21c007c1 100644
--- a/lib/vtls/wolfssl.c
+++ b/lib/vtls/wolfssl.c
@@ -494,15 +494,11 @@ wolfssl_connect_step1(struct Curl_easy *data, struct connectdata *conn,
&ssl_sessionid, NULL, sockindex)) {
/* we got a session id, use it! */
if(!SSL_set_session(backend->handle, ssl_sessionid)) {
- char error_buffer[WOLFSSL_MAX_ERROR_SZ];
- Curl_ssl_sessionid_unlock(data);
- failf(data, "SSL: SSL_set_session failed: %s",
- ERR_error_string(SSL_get_error(backend->handle, 0),
- error_buffer));
- return CURLE_SSL_CONNECT_ERROR;
+ Curl_ssl_delsessionid(data, ssl_sessionid);
+ infof(data, "Can't use session ID, going on without\n");
}
- /* Informational message */
- infof(data, "SSL re-using session ID\n");
+ else
+ infof(data, "SSL re-using session ID\n");
}
Curl_ssl_sessionid_unlock(data);
}