From e72e6febfeddbd4354560388c8e0e125a8017909 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 15 Jul 2012 22:53:03 +0200 Subject: [PATCH] Fix tincctl dump. --- src/tincctl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"); -- 2.39.5