Commit dd488281c66eddff040c2f130685bb135765a2a8
1 parent
448afec0
Exists in
master
and in
3 other branches
Removendo popup quando o código de erro SSL é zero
Showing
1 changed file
with
7 additions
and
5 deletions
Show diff stats
telnet.c
| @@ -1029,13 +1029,15 @@ void net_input(H3270 *hSession) | @@ -1029,13 +1029,15 @@ void net_input(H3270 *hSession) | ||
| 1029 | 1029 | ||
| 1030 | e = ERR_get_error(); | 1030 | e = ERR_get_error(); |
| 1031 | if (e != 0) | 1031 | if (e != 0) |
| 1032 | + { | ||
| 1032 | (void) ERR_error_string(e, err_buf); | 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 | else | 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 | host_disconnect(hSession,True); | 1042 | host_disconnect(hSession,True); |
| 1041 | return; | 1043 | return; |