Commit 310404f3a2f506e0bd7665fc0231229154aeca61

Authored by Perry Werneck
1 parent a02f9a71

Corrigindo informe de estado do SSL quando o terminal está desconectado.

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
ssl.c
... ... @@ -421,6 +421,10 @@ void ssl_info_callback(INFO_CONST SSL *s, int where, int ret)
421 421 LIB3270_EXPORT LIB3270_SSL_STATE lib3270_get_secure(H3270 *session)
422 422 {
423 423 CHECK_SESSION_HANDLE(session);
  424 +
  425 + if(!lib3270_is_connected(session))
  426 + return LIB3270_SSL_UNDEFINED;
  427 +
424 428 return session->secure;
425 429 }
426 430  
... ...