version 1.21, 2000/01/22 20:20:28 |
version 1.22, 2000/02/05 10:13:11 |
|
|
{ |
{ |
unsigned int len, padded_len; |
unsigned int len, padded_len; |
unsigned char *ucp; |
unsigned char *ucp; |
char buf[8], *cp; |
char buf[8], *cp, *msg; |
unsigned int checksum, stored_checksum; |
unsigned int checksum, stored_checksum; |
|
|
restart: |
restart: |
|
|
|
|
/* Handle disconnect message. */ |
/* Handle disconnect message. */ |
if ((unsigned char) buf[0] == SSH_MSG_DISCONNECT) { |
if ((unsigned char) buf[0] == SSH_MSG_DISCONNECT) { |
log("Received disconnect: %.900s", packet_get_string(NULL)); |
msg = packet_get_string(NULL); |
|
log("Received disconnect: %.900s", msg); |
|
xfree(msg); |
fatal_cleanup(); |
fatal_cleanup(); |
} |
} |
|
|
|
|
|
|
/* Send debug messages as debugging output. */ |
/* Send debug messages as debugging output. */ |
if ((unsigned char) buf[0] == SSH_MSG_DEBUG) { |
if ((unsigned char) buf[0] == SSH_MSG_DEBUG) { |
debug("Remote: %.900s", packet_get_string(NULL)); |
msg = packet_get_string(NULL); |
|
debug("Remote: %.900s", msg); |
|
xfree(msg); |
goto restart; |
goto restart; |
} |
} |
/* Return type. */ |
/* Return type. */ |