]> git.meshlink.io Git - meshlink/commitdiff
Fix tincctl dump.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 15 Jul 2012 20:53:03 +0000 (22:53 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 15 Jul 2012 20:53:03 +0000 (22:53 +0200)
src/tincctl.c

index 09010eafe082ecf41e43fc157e0b90aecce59b33..8a3309556c3ef32c6c137593b289b0f4170a1e2b 100644 (file)
@@ -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");