X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=client_common.c;h=1536bb2e965ec94007fc81def6edbfac1d16b444;hb=162edbbffe5741b2182ba5ad393bc8303c2dec8c;hp=bd5a7bfba0cbce4dfeb9ac75ef5a523f5c6d6e5c;hpb=f42b5eccb6ec3364dc0500ffeffbe9d9ecab07bd;p=paraslash.git diff --git a/client_common.c b/client_common.c index bd5a7bfb..1536bb2e 100644 --- a/client_common.c +++ b/client_common.c @@ -178,7 +178,7 @@ static void client_post_select(struct sched *s, struct task *t) ret = client_recv_buffer(ct, buf, sizeof(buf)); if (ret < 0) goto err; - PARA_INFO_LOG("<-- [challenge] (%zu bytes)\n", ret); + PARA_INFO_LOG("<-- [challenge] (%d bytes)\n", ret); ret = para_decrypt_buffer(ct->key_file, crypt_buf, (unsigned char *)buf, ret); if (ret < 0) @@ -339,6 +339,8 @@ err_out: * \param ct_ptr Points to dynamically allocated and initialized client task * struct upon successful return. * \param loglevel If not \p NULL, the number of the loglevel is stored here. + * \param parent Add the new buffer tree node as a child of this node. + * \param child Add the new buffer tree node as a parent of this node. * * Check the command line options given by \a argc and argv, set default values * for user name and rsa key file, read further option from the config file. @@ -404,6 +406,7 @@ out: free(home); if (ret < 0) { PARA_ERROR_LOG("%s\n", para_strerror(-ret)); + btr_remove_node(ct->btrn); btr_free_node(ct->btrn); client_close(ct); *ct_ptr = NULL;