--- perdition/perdition.c.orig 2012-01-24 15:44:41.000000000 +0000 +++ perdition/perdition.c 2012-01-24 15:47:37.000000000 +0000 @@ -704,15 +704,15 @@ token_flush(); if(status<0){ VANESSA_LOGGER_DEBUG("protocol->in_get_pw"); - if (io_get_err(client_io) == io_err_timeout) + if (io_get_err(client_io) == io_err_timeout) { VANESSA_LOGGER_ERR_UNSAFE("Fatal Error: Timeout reading " "authentication information from " "client%s: Exiting child", - from_to_host_str); - else + from_to_host_str); } + else { VANESSA_LOGGER_ERR_UNSAFE("Fatal Error reading authentication " "information from client%s: " - "Exiting child", from_to_host_str); + "Exiting child", from_to_host_str); } perdition_exit_cleanly(-1); } else if(status == 1){ @@ -944,12 +944,12 @@ } else if(status<0){ VANESSA_LOGGER_DEBUG_UNSAFE("protocol->out_authenticate %d", status); - if (io_get_err(client_io) == io_err_timeout) + if (io_get_err(client_io) == io_err_timeout) { VANESSA_LOGGER_ERR("Fatal error: Timeout authenticating user. " - "Exiting child."); - else + "Exiting child."); } + else { VANESSA_LOGGER_ERR("Fatal error authenticating user. Exiting child."); - perdition_exit_cleanly(-1); + perdition_exit_cleanly(-1); } } if(opt.server_resp_line){ @@ -992,11 +992,11 @@ if(io_pipe(server_io, client_io, buffer, BUFFER_SIZE, &bytes_written, &bytes_read, &auth_log)<0){ VANESSA_LOGGER_DEBUG("vanessa_socket_pipe"); - if (io_get_err(client_io) == io_err_timeout) + if (io_get_err(client_io) == io_err_timeout) { VANESSA_LOGGER_ERR("Fatal error: Timeout piping data. " - "Exiting child."); - else - VANESSA_LOGGER_ERR("Fatal error piping data. Exiting child."); + "Exiting child."); } + else { + VANESSA_LOGGER_ERR("Fatal error piping data. Exiting child."); } perdition_exit_cleanly(-1); }