X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=client_common.c;h=a4aa6d8c3ecc3ae386cbb14515f05f8257d96e0d;hp=649a1b4fdf49579e653d7b6cd6d9c977524e6171;hb=66b0f375732897cb76cfbefbb03ed951c4ed24ba;hpb=02dd632ab2a6696aff7b6c6d108069704cfe871a diff --git a/client_common.c b/client_common.c index 649a1b4f..a4aa6d8c 100644 --- a/client_common.c +++ b/client_common.c @@ -48,8 +48,7 @@ void client_disconnect(struct client_task *ct) ct->scc.recv = NULL; sc_free(ct->scc.send); ct->scc.send = NULL; - btr_free_node(ct->btrn); - ct->btrn = NULL; + btr_remove_node(&ct->btrn); } /** @@ -562,7 +561,7 @@ out: if (!ct->use_sideband && ret != -E_SERVER_EOF && ret != -E_BTR_EOF && ret != -E_EOF) PARA_ERROR_LOG("%s\n", para_strerror(-t->error)); - btr_remove_node(btrn); + btr_remove_node(&ct->btrn); } }