From a4fd644694d4c69bad68ba01f12055f071685e71 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Mon, 8 Jul 2019 15:42:55 -0300 Subject: [PATCH] Fixing "null" in CRL error message. --- src/include/3270ds.h | 7 +++---- src/lib3270/connect.c | 4 +++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/include/3270ds.h b/src/include/3270ds.h index aed8344..b80aa4a 100644 --- a/src/include/3270ds.h +++ b/src/include/3270ds.h @@ -20,10 +20,9 @@ * file LICENSE for more details. */ -/* - * 3270ds.h - * - * Header file for the 3270 Data Stream Protocol. +/** + * @file 3270ds.h + * @brief Header file for the 3270 Data Stream Protocol. */ /* 3270 commands */ diff --git a/src/lib3270/connect.c b/src/lib3270/connect.c index 43b9533..0c8a76f 100644 --- a/src/lib3270/connect.c +++ b/src/lib3270/connect.c @@ -101,8 +101,10 @@ static int background_ssl_crl_check(H3270 *hSession, void *ssl_error) { if(ssl_error.description) lib3270_popup_dialog(hSession, LIB3270_NOTIFY_ERROR, ssl_error.title, ssl_error.text, "%s", ssl_error.description); - else + else if(ssl_error.error) lib3270_popup_dialog(hSession, LIB3270_NOTIFY_ERROR, ssl_error.title, ssl_error.text, "%s", ERR_reason_error_string(ssl_error.error)); + else + lib3270_popup_dialog(hSession, LIB3270_NOTIFY_ERROR, ssl_error.title, ssl_error.text, "%s",""); return errno = rc; } -- libgit2 0.21.2