From: Guus Sliepen Date: Sun, 15 Jul 2012 20:53:03 +0000 (+0200) Subject: Fix tincctl dump. X-Git-Tag: import-tinc-1.1~358 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=e72e6febfeddbd4354560388c8e0e125a8017909;p=meshlink Fix tincctl dump. --- diff --git a/src/tincctl.c b/src/tincctl.c index 09010eaf..8a330955 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -734,6 +734,9 @@ static int cmd_dump(int argc, char *argv[]) { return 1; } + if(!connect_tincd()) + return 1; + bool do_graph = false; if(!strcasecmp(argv[1], "nodes")) @@ -754,9 +757,6 @@ static int cmd_dump(int argc, char *argv[]) { return 1; } - if(!connect_tincd()) - return 1; - if(do_graph) printf("digraph {\n");