diff options
author | Matt Johnston <matt@ucc.asn.au> | 2006-07-27 01:24:39 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2006-07-27 01:24:39 +0000 |
commit | afb651821b9e603fc9347b3fb5d0ba9ddfdad355 (patch) | |
tree | 80b92f90c82d4229d33d714e9aa8c562230f2f1e | |
parent | 92cf98c77b39fbdb6c56ead134f2c493c6ceadf7 (diff) |
Just use the normal "remote closed" handler when reading ident stings
--HG--
extra : convert_revision : 9a4e042fd565f46141e81e0c1ab90260303348fe
-rw-r--r-- | common-session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common-session.c b/common-session.c index 4c15391..b8ea6f7 100644 --- a/common-session.c +++ b/common-session.c @@ -229,7 +229,7 @@ void session_identification() { /* write our version string, this blocks */ if (atomicio(write, ses.sock, LOCAL_IDENT "\r\n", strlen(LOCAL_IDENT "\r\n")) == DROPBEAR_FAILURE) { - dropbear_exit("Error writing ident string"); + ses.remoteclosed(); } /* If they send more than 50 lines, something is wrong */ @@ -250,7 +250,7 @@ void session_identification() { if (!done) { TRACE(("err: %s for '%s'\n", strerror(errno), linebuf)) - dropbear_exit("Failed to get remote version"); + ses.remoteclosed(); } else { /* linebuf is already null terminated */ ses.remoteident = m_malloc(len); |