The unified diff between revisions [bea3887a..] and [d05a6820..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'common-session.c'
#
#
# patch "common-session.c"
# from [96eecb59aa3e87bb0a2364636f6d7a5035bfb2ff]
# to [fad985d30a179fcc087deed9350af7b3cc90dc38]
#
============================================================
--- common-session.c 96eecb59aa3e87bb0a2364636f6d7a5035bfb2ff
+++ common-session.c fad985d30a179fcc087deed9350af7b3cc90dc38
@@ -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);