mirror of
https://github.com/curl/curl.git
synced 2026-06-05 16:14:16 +03:00
polarssl: fix unaligned SSL session-id lock
This commit is contained in:
parent
ace237ae4e
commit
1e3161a20d
1 changed files with 2 additions and 1 deletions
|
|
@ -344,13 +344,14 @@ polarssl_connect_step1(struct connectdata *conn,
|
|||
Curl_ssl_sessionid_lock(conn);
|
||||
if(!Curl_ssl_getsessionid(conn, &old_session, NULL)) {
|
||||
ret = ssl_set_session(&connssl->ssl, old_session);
|
||||
Curl_ssl_sessionid_unlock(conn);
|
||||
if(ret) {
|
||||
Curl_ssl_sessionid_unlock(conn);
|
||||
failf(data, "ssl_set_session returned -0x%x", -ret);
|
||||
return CURLE_SSL_CONNECT_ERROR;
|
||||
}
|
||||
infof(data, "PolarSSL re-using session\n");
|
||||
}
|
||||
Curl_ssl_sessionid_unlock(conn);
|
||||
}
|
||||
|
||||
ssl_set_ca_chain(&connssl->ssl,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue