projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9be8980
)
Fix tincctl dump.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 15 Jul 2012 20:53:03 +0000
(22:53 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 15 Jul 2012 20:53:03 +0000
(22:53 +0200)
src/tincctl.c
patch
|
blob
|
history
diff --git
a/src/tincctl.c
b/src/tincctl.c
index
09010ea
..
8a33095
100644
(file)
--- 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");