Commit 3eb3dbbf70d2ead39b89a5b3aec2102757fb49b6

Authored by Perry Werneck
1 parent 588c35e6

Fixing CRL download on fixed url.

Showing 1 changed file with 5 additions and 2 deletions   Show diff stats
src/ssl/negotiate.c
... ... @@ -164,8 +164,11 @@ static int background_ssl_negotiation(H3270 *hSession, void *message)
164 164 #ifdef SSL_CRL_URL
165 165  
166 166 // Load CRL from pre-defined URL
167   - if(lib3270_crl_new_from_url(hSession, message, SSL_CRL_URL))
168   - return EACCES;
  167 + if(!hSession->ssl.crl.cert)
  168 + {
  169 + if(lib3270_crl_new_from_url(hSession, message, SSL_CRL_URL))
  170 + return EACCES;
  171 + }
169 172  
170 173 #endif // SSL_CRL_URL
171 174  
... ...