Fix tincctl dump.

This commit is contained in:
Guus Sliepen 2012-07-15 22:53:03 +02:00
parent 9be8980a2b
commit e72e6febfe

View 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");