summaryrefslogtreecommitdiff
path: root/src/tools/cbr/cbr_client.c
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-06-16 22:32:06 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-06-16 22:32:06 +0200
commit0bdec7d84cccf3714804a6bc220fbedf96eccd54 (patch)
tree0abf4e18a593de01fc00d38910736da8b418180d /src/tools/cbr/cbr_client.c
parentd222a173f826c6bc4b32c3db8bac7ba610632c8e (diff)
downloadouroboros-0bdec7d84cccf3714804a6bc220fbedf96eccd54.tar.gz
ouroboros-0bdec7d84cccf3714804a6bc220fbedf96eccd54.zip
tools: fixed application shutdown
Tools would do a double ap_fini when an error occurred.
Diffstat (limited to 'src/tools/cbr/cbr_client.c')
-rw-r--r--src/tools/cbr/cbr_client.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/tools/cbr/cbr_client.c b/src/tools/cbr/cbr_client.c
index 1cc325b8..af766599 100644
--- a/src/tools/cbr/cbr_client.c
+++ b/src/tools/cbr/cbr_client.c
@@ -60,7 +60,6 @@ int client_main(char * server,
fd = flow_alloc(server, NULL, NULL);
if (fd < 0) {
printf("Failed to allocate flow.\n");
- ap_fini();
return -1;
}
@@ -68,7 +67,6 @@ int client_main(char * server,
if (result < 0) {
printf("Flow allocation refused.\n");
flow_dealloc(fd);
- ap_fini();
return -1;
}