From b0f7227c2624a1771299ae6e09b5c4e12f4f5cfe Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Tue, 29 Jul 2014 04:55:43 +0000 Subject: [PATCH] Removendo popup quando o código de erro SSL é zero --- src/lib3270/telnet.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/lib3270/telnet.c b/src/lib3270/telnet.c index bc3a247..3a5c760 100644 --- a/src/lib3270/telnet.c +++ b/src/lib3270/telnet.c @@ -1029,13 +1029,15 @@ void net_input(H3270 *hSession) e = ERR_get_error(); if (e != 0) + { (void) ERR_error_string(e, err_buf); + trace_dsn(hSession,"RCVD SSL_read error %ld (%s)\n", e,err_buf); + hSession->message(hSession,LIB3270_NOTIFY_ERROR,_( "SSL Error" ),_( "SSL Read error" ),err_buf ); + } else - strcpy(err_buf, _( "unknown error" ) ); - - trace_dsn(hSession,"RCVD SSL_read error %ld (%s)\n", e,err_buf); - - hSession->message(hSession,LIB3270_NOTIFY_ERROR,_( "SSL Error" ),_( "SSL Read error" ),err_buf ); + { + trace_dsn(hSession,"RCVD SSL_read error %ld (%s)\n", e, "unknown"); + } host_disconnect(hSession,True); return; -- libgit2 0.21.2