diff options
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -37,7 +37,7 @@ | |||
37 | */ | 37 | */ |
38 | 38 | ||
39 | #include "includes.h" | 39 | #include "includes.h" |
40 | RCSID("$OpenBSD: packet.c,v 1.98 2002/10/23 10:32:13 markus Exp $"); | 40 | RCSID("$OpenBSD: packet.c,v 1.99 2002/11/04 10:09:51 markus Exp $"); |
41 | 41 | ||
42 | #include "xmalloc.h" | 42 | #include "xmalloc.h" |
43 | #include "buffer.h" | 43 | #include "buffer.h" |
@@ -1226,6 +1226,9 @@ packet_disconnect(const char *fmt,...) | |||
1226 | vsnprintf(buf, sizeof(buf), fmt, args); | 1226 | vsnprintf(buf, sizeof(buf), fmt, args); |
1227 | va_end(args); | 1227 | va_end(args); |
1228 | 1228 | ||
1229 | /* Display the error locally */ | ||
1230 | log("Disconnecting: %.100s", buf); | ||
1231 | |||
1229 | /* Send the disconnect message to the other side, and wait for it to get sent. */ | 1232 | /* Send the disconnect message to the other side, and wait for it to get sent. */ |
1230 | if (compat20) { | 1233 | if (compat20) { |
1231 | packet_start(SSH2_MSG_DISCONNECT); | 1234 | packet_start(SSH2_MSG_DISCONNECT); |
@@ -1245,8 +1248,6 @@ packet_disconnect(const char *fmt,...) | |||
1245 | /* Close the connection. */ | 1248 | /* Close the connection. */ |
1246 | packet_close(); | 1249 | packet_close(); |
1247 | 1250 | ||
1248 | /* Display the error locally and exit. */ | ||
1249 | log("Disconnecting: %.100s", buf); | ||
1250 | fatal_cleanup(); | 1251 | fatal_cleanup(); |
1251 | } | 1252 | } |
1252 | 1253 | ||