mirror of
https://github.com/curl/curl.git
synced 2025-04-12 16:20:35 +08:00
polarssl: fix unaligned SSL session-id lock
This commit is contained in:
parent
ace237ae4e
commit
1e3161a20d
@ -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…
x
Reference in New Issue
Block a user