X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=command.c;h=8deb69ce2f233ee7d0c691a62cebd2d8ded43ce1;hp=5e13df66bce15a7e759ce1dd85347b9a176a5417;hb=9c2a265397821d91ec628f549516b25757f5c801;hpb=4744d937c4160898d1fe151257606430750e580c diff --git a/command.c b/command.c index 5e13df66..8deb69ce 100644 --- a/command.c +++ b/command.c @@ -975,7 +975,10 @@ __noreturn void handle_connect(int fd, const char *peername) /* init stream cipher keys with the second part of the random buffer */ cc->scc.recv = sc_new(rand_buf + CHALLENGE_SIZE, SESSION_KEY_LEN); cc->scc.send = sc_new(rand_buf + CHALLENGE_SIZE + SESSION_KEY_LEN, SESSION_KEY_LEN); - ret = sc_send_buffer(&cc->scc, PROCEED_MSG); + if (cc->use_sideband) + ret = send_sb(&cc->scc, NULL, 0, SBD_PROCEED, false); + else + ret = sc_send_buffer(&cc->scc, PROCEED_MSG); if (ret < 0) goto net_err; ret = read_command(&cc->scc, &command);