diff --git a/auth2.c b/auth2.c index 1f9ec63..02e87a4 100644 --- a/auth2.c +++ b/auth2.c @@ -370,8 +370,11 @@ userauth_finish(struct ssh *ssh, int authenticated, const char *method, if (authenticated == 1) { /* turn off userauth */ ssh_dispatch_set(ssh, SSH2_MSG_USERAUTH_REQUEST, &dispatch_protocol_ignore); + debug3("starting USERAUTH_SUCCESS packet"); packet_start(SSH2_MSG_USERAUTH_SUCCESS); + debug3("sending USERAUTH_SUCCESS packet"); packet_send(); + debug3("writing USERAUTH_SUCCESS packet"); packet_write_wait(); /* now we can break out */ authctxt->success = 1; diff --git a/packet.c b/packet.c index f114ea5..baf7572 100644 --- a/packet.c +++ b/packet.c @@ -1030,6 +1030,8 @@ ssh_packet_send2_wrapped(struct ssh *ssh) struct sshcomp *comp = NULL; int r, block_size; + debug3("%s entering", __func__); + if (state->newkeys[MODE_OUT] != NULL) { enc = &state->newkeys[MODE_OUT]->enc; mac = &state->newkeys[MODE_OUT]->mac; @@ -1172,6 +1174,7 @@ ssh_packet_send2_wrapped(struct ssh *ssh) else r = 0; out: + debug3("%s returning %d", __func__, r); return r; } @@ -1925,6 +1928,8 @@ ssh_packet_write_wait(struct ssh *ssh) struct timeval start, timeout, *timeoutp = NULL; struct session_state *state = ssh->state; + debug3("%s entering", __func__); + setp = calloc(howmany(state->connection_out + 1, NFDBITS), sizeof(fd_mask)); if (setp == NULL)