File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,7 @@ get_cyassl_ctx(void)
156
156
/* Allow TLSv1.0 up to TLSv1.2 */
157
157
if ( (cyassl_ctx = CyaSSL_CTX_new (CyaTLSv1_client_method ())) == NULL ){
158
158
debug (LOG_ERR , "Could not create CYASSL context." );
159
+ UNLOCK_CYASSL_CTX ();
159
160
return NULL ;
160
161
}
161
162
@@ -164,6 +165,7 @@ get_cyassl_ctx(void)
164
165
err = CyaSSL_CTX_set_cipher_list (cyassl_ctx , config -> ssl_cipher_list );
165
166
if (SSL_SUCCESS != err ) {
166
167
debug (LOG_ERR , "Could not load SSL cipher list (error %d)" , err );
168
+ UNLOCK_CYASSL_CTX ();
167
169
return NULL ;
168
170
}
169
171
}
@@ -181,6 +183,7 @@ get_cyassl_ctx(void)
181
183
debug (LOG_ERR , "Make sure that SSLCertPath points to the correct path in the config file" );
182
184
debug (LOG_ERR , "Or disable certificate loading with 'SSLPeerVerification No'." );
183
185
}
186
+ UNLOCK_CYASSL_CTX ();
184
187
return NULL ;
185
188
}
186
189
} else {
You can’t perform that action at this time.
0 commit comments