X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=command.c;fp=command.c;h=84b7d9438fa21a3fd491ab4a0ee0918f6ff9c086;hp=cd24c0350ef90fbeccf713325738a6b03eba1000;hb=17c140cc24838c2b7049e2b4c17621f4284d53dc;hpb=0b786d977ded3c3922e851e5b8d60837b43469b9 diff --git a/command.c b/command.c index cd24c035..84b7d943 100644 --- a/command.c +++ b/command.c @@ -877,7 +877,7 @@ static int run_command(struct command_context *cc, struct iovec *iov) * * \sa alarm(2), \ref crypt.c, \ref crypt.h. */ -__noreturn void handle_connect(int fd) +int handle_connect(int fd) { int ret; unsigned char rand_buf[CHALLENGE_SIZE + 2 * SESSION_KEY_LEN]; @@ -987,5 +987,5 @@ out: } sc_free(cc->scc.recv); sc_free(cc->scc.send); - exit(ret < 0? EXIT_FAILURE : EXIT_SUCCESS); + return ret; }