Limpieza de la sesión cuando la conexión falla.

master
Félix Arreola Rodríguez 2023-02-26 20:42:03 -06:00
parent a965af97b4
commit 8af5eaa681
1 changed files with 5 additions and 1 deletions

View File

@ -377,7 +377,11 @@ int _smtp_session_internal_connect_cont (SMTPSession *session) {
return SMTP_ERROR; return SMTP_ERROR;
} }
/* FIXME: Revisar el valor de optval */ if (optval != 0) {
smtp_session_close_and_clean (session);
return SMTP_ERROR;
}
/* Pasamos a la lectura del banner */ /* Pasamos a la lectura del banner */
session->internal = SMTP_INTERNAL_READ; session->internal = SMTP_INTERNAL_READ;