projects
/
oweals
/
tinc.git
/ 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 09010eafe082ecf41e43fc157e0b90aecce59b33..8a3309556c3ef32c6c137593b289b0f4170a1e2b 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");