Commit b0f7227c2624a1771299ae6e09b5c4e12f4f5cfe

Authored by perry.werneck@gmail.com
1 parent a73ec3ca

Removendo popup quando o código de erro SSL é zero

Showing 1 changed file with 7 additions and 5 deletions   Show diff stats
src/lib3270/telnet.c
... ... @@ -1029,13 +1029,15 @@ void net_input(H3270 *hSession)
1029 1029  
1030 1030 e = ERR_get_error();
1031 1031 if (e != 0)
  1032 + {
1032 1033 (void) ERR_error_string(e, err_buf);
  1034 + trace_dsn(hSession,"RCVD SSL_read error %ld (%s)\n", e,err_buf);
  1035 + hSession->message(hSession,LIB3270_NOTIFY_ERROR,_( "SSL Error" ),_( "SSL Read error" ),err_buf );
  1036 + }
1033 1037 else
1034   - strcpy(err_buf, _( "unknown error" ) );
1035   -
1036   - trace_dsn(hSession,"RCVD SSL_read error %ld (%s)\n", e,err_buf);
1037   -
1038   - hSession->message(hSession,LIB3270_NOTIFY_ERROR,_( "SSL Error" ),_( "SSL Read error" ),err_buf );
  1038 + {
  1039 + trace_dsn(hSession,"RCVD SSL_read error %ld (%s)\n", e, "unknown");
  1040 + }
1039 1041  
1040 1042 host_disconnect(hSession,True);
1041 1043 return;
... ...