version 1.16, 1999/11/24 19:53:48 |
version 1.17, 1999/12/02 20:16:34 |
|
|
*payload_len_ptr = buffer_len(&incoming_packet); |
*payload_len_ptr = buffer_len(&incoming_packet); |
|
|
/* Handle disconnect message. */ |
/* Handle disconnect message. */ |
if ((unsigned char) buf[0] == SSH_MSG_DISCONNECT) |
if ((unsigned char) buf[0] == SSH_MSG_DISCONNECT) { |
fatal("Received disconnect: %.900s", packet_get_string(NULL)); |
log("Received disconnect: %.900s", packet_get_string(NULL)); |
|
fatal_cleanup(); |
|
} |
|
|
/* Ignore ignore messages. */ |
/* Ignore ignore messages. */ |
if ((unsigned char) buf[0] == SSH_MSG_IGNORE) |
if ((unsigned char) buf[0] == SSH_MSG_IGNORE) |
|
|
packet_close(); |
packet_close(); |
|
|
/* Display the error locally and exit. */ |
/* Display the error locally and exit. */ |
fatal("Disconnecting: %.100s", buf); |
log("Disconnecting: %.100s", buf); |
|
fatal_cleanup(); |
} |
} |
|
|
/* Checks if there is any buffered output, and tries to write some of the output. */ |
/* Checks if there is any buffered output, and tries to write some of the output. */ |