Commit a4fd644694d4c69bad68ba01f12055f071685e71
1 parent
b8373175
Exists in
master
and in
3 other branches
Fixing "null" in CRL error message.
Showing
2 changed files
with
6 additions
and
5 deletions
Show diff stats
src/include/3270ds.h
| @@ -20,10 +20,9 @@ | @@ -20,10 +20,9 @@ | ||
| 20 | * file LICENSE for more details. | 20 | * file LICENSE for more details. |
| 21 | */ | 21 | */ |
| 22 | 22 | ||
| 23 | -/* | ||
| 24 | - * 3270ds.h | ||
| 25 | - * | ||
| 26 | - * Header file for the 3270 Data Stream Protocol. | 23 | +/** |
| 24 | + * @file 3270ds.h | ||
| 25 | + * @brief Header file for the 3270 Data Stream Protocol. | ||
| 27 | */ | 26 | */ |
| 28 | 27 | ||
| 29 | /* 3270 commands */ | 28 | /* 3270 commands */ |
src/lib3270/connect.c
| @@ -101,8 +101,10 @@ static int background_ssl_crl_check(H3270 *hSession, void *ssl_error) | @@ -101,8 +101,10 @@ static int background_ssl_crl_check(H3270 *hSession, void *ssl_error) | ||
| 101 | { | 101 | { |
| 102 | if(ssl_error.description) | 102 | if(ssl_error.description) |
| 103 | lib3270_popup_dialog(hSession, LIB3270_NOTIFY_ERROR, ssl_error.title, ssl_error.text, "%s", ssl_error.description); | 103 | lib3270_popup_dialog(hSession, LIB3270_NOTIFY_ERROR, ssl_error.title, ssl_error.text, "%s", ssl_error.description); |
| 104 | - else | 104 | + else if(ssl_error.error) |
| 105 | lib3270_popup_dialog(hSession, LIB3270_NOTIFY_ERROR, ssl_error.title, ssl_error.text, "%s", ERR_reason_error_string(ssl_error.error)); | 105 | lib3270_popup_dialog(hSession, LIB3270_NOTIFY_ERROR, ssl_error.title, ssl_error.text, "%s", ERR_reason_error_string(ssl_error.error)); |
| 106 | + else | ||
| 107 | + lib3270_popup_dialog(hSession, LIB3270_NOTIFY_ERROR, ssl_error.title, ssl_error.text, "%s",""); | ||
| 106 | 108 | ||
| 107 | return errno = rc; | 109 | return errno = rc; |
| 108 | } | 110 | } |