Commit 8ce1e5227a7de5bf6f385b9ecae38e94b8c35391
1 parent
38a30096
Exists in
master
and in
2 other branches
Fix escaped url.
Showing
1 changed file
with
6 additions
and
3 deletions
Show diff stats
src/network_modules/openssl/start.c
| @@ -34,6 +34,7 @@ | @@ -34,6 +34,7 @@ | ||
| 34 | 34 | ||
| 35 | #include "private.h" | 35 | #include "private.h" |
| 36 | #include <lib3270/properties.h> | 36 | #include <lib3270/properties.h> |
| 37 | + #include <utilc.h> | ||
| 37 | 38 | ||
| 38 | static int import_crl(H3270 *hSession, SSL_CTX * ssl_ctx, LIB3270_NET_CONTEXT * context, const char *url) { | 39 | static int import_crl(H3270 *hSession, SSL_CTX * ssl_ctx, LIB3270_NET_CONTEXT * context, const char *url) { |
| 39 | 40 | ||
| @@ -152,9 +153,11 @@ | @@ -152,9 +153,11 @@ | ||
| 152 | if(strncasecmp(prefer,uris->str[ix],length)) | 153 | if(strncasecmp(prefer,uris->str[ix],length)) |
| 153 | continue; | 154 | continue; |
| 154 | 155 | ||
| 155 | - debug("Trying %s",uris->str[ix]); | ||
| 156 | - if(!import_crl(hSession,ctx_context,context,uris->str[ix])) { | ||
| 157 | - trace_ssl(hSession,"Got CRL from %s\n",uris->str[ix]); | 156 | + lib3270_autoptr(char) url = lib3270_unescape(uris->str[ix]); |
| 157 | + debug("Trying %s",url); | ||
| 158 | + | ||
| 159 | + if(!import_crl(hSession,ctx_context,context,url)) { | ||
| 160 | + trace_ssl(hSession,"Got CRL from %s\n",url); | ||
| 158 | return; | 161 | return; |
| 159 | } | 162 | } |
| 160 | 163 |