Lines 704-718
Link Here
|
704 |
token_flush(); |
704 |
token_flush(); |
705 |
if(status<0){ |
705 |
if(status<0){ |
706 |
VANESSA_LOGGER_DEBUG("protocol->in_get_pw"); |
706 |
VANESSA_LOGGER_DEBUG("protocol->in_get_pw"); |
707 |
if (io_get_err(client_io) == io_err_timeout) |
707 |
if (io_get_err(client_io) == io_err_timeout) { |
708 |
VANESSA_LOGGER_ERR_UNSAFE("Fatal Error: Timeout reading " |
708 |
VANESSA_LOGGER_ERR_UNSAFE("Fatal Error: Timeout reading " |
709 |
"authentication information from " |
709 |
"authentication information from " |
710 |
"client%s: Exiting child", |
710 |
"client%s: Exiting child", |
711 |
from_to_host_str); |
711 |
from_to_host_str); } |
712 |
else |
712 |
else { |
713 |
VANESSA_LOGGER_ERR_UNSAFE("Fatal Error reading authentication " |
713 |
VANESSA_LOGGER_ERR_UNSAFE("Fatal Error reading authentication " |
714 |
"information from client%s: " |
714 |
"information from client%s: " |
715 |
"Exiting child", from_to_host_str); |
715 |
"Exiting child", from_to_host_str); } |
716 |
perdition_exit_cleanly(-1); |
716 |
perdition_exit_cleanly(-1); |
717 |
} |
717 |
} |
718 |
else if(status == 1){ |
718 |
else if(status == 1){ |
Lines 944-955
Link Here
|
944 |
} |
944 |
} |
945 |
else if(status<0){ |
945 |
else if(status<0){ |
946 |
VANESSA_LOGGER_DEBUG_UNSAFE("protocol->out_authenticate %d", status); |
946 |
VANESSA_LOGGER_DEBUG_UNSAFE("protocol->out_authenticate %d", status); |
947 |
if (io_get_err(client_io) == io_err_timeout) |
947 |
if (io_get_err(client_io) == io_err_timeout) { |
948 |
VANESSA_LOGGER_ERR("Fatal error: Timeout authenticating user. " |
948 |
VANESSA_LOGGER_ERR("Fatal error: Timeout authenticating user. " |
949 |
"Exiting child."); |
949 |
"Exiting child."); } |
950 |
else |
950 |
else { |
951 |
VANESSA_LOGGER_ERR("Fatal error authenticating user. Exiting child."); |
951 |
VANESSA_LOGGER_ERR("Fatal error authenticating user. Exiting child."); |
952 |
perdition_exit_cleanly(-1); |
952 |
perdition_exit_cleanly(-1); } |
953 |
} |
953 |
} |
954 |
|
954 |
|
955 |
if(opt.server_resp_line){ |
955 |
if(opt.server_resp_line){ |
Lines 992-1002
Link Here
|
992 |
if(io_pipe(server_io, client_io, buffer, BUFFER_SIZE, |
992 |
if(io_pipe(server_io, client_io, buffer, BUFFER_SIZE, |
993 |
&bytes_written, &bytes_read, &auth_log)<0){ |
993 |
&bytes_written, &bytes_read, &auth_log)<0){ |
994 |
VANESSA_LOGGER_DEBUG("vanessa_socket_pipe"); |
994 |
VANESSA_LOGGER_DEBUG("vanessa_socket_pipe"); |
995 |
if (io_get_err(client_io) == io_err_timeout) |
995 |
if (io_get_err(client_io) == io_err_timeout) { |
996 |
VANESSA_LOGGER_ERR("Fatal error: Timeout piping data. " |
996 |
VANESSA_LOGGER_ERR("Fatal error: Timeout piping data. " |
997 |
"Exiting child."); |
997 |
"Exiting child."); } |
998 |
else |
998 |
else { |
999 |
VANESSA_LOGGER_ERR("Fatal error piping data. Exiting child."); |
999 |
VANESSA_LOGGER_ERR("Fatal error piping data. Exiting child."); } |
1000 |
perdition_exit_cleanly(-1); |
1000 |
perdition_exit_cleanly(-1); |
1001 |
} |
1001 |
} |
1002 |
|
1002 |
|