projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5567c0d
)
Fix node name check for "connect" and "disconnect" commands.
author
Guus Sliepen
<guus@tinc-vpn.org>
Thu, 30 Aug 2012 12:00:34 +0000
(14:00 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Thu, 30 Aug 2012 12:00:34 +0000
(14:00 +0200)
src/tincctl.c
patch
|
blob
|
history
diff --git
a/src/tincctl.c
b/src/tincctl.c
index
fa52533
..
00d8eb9
100644
(file)
--- a/
src/tincctl.c
+++ b/
src/tincctl.c
@@
-928,7
+928,7
@@
static int cmd_connect(int argc, char *argv[]) {
return 1;
}
- if(!check_id(argv[
2
])) {
+ if(!check_id(argv[
1
])) {
fprintf(stderr, "Invalid name for node.\n");
return 1;
}
@@
-951,7
+951,7
@@
static int cmd_disconnect(int argc, char *argv[]) {
return 1;
}
- if(!check_id(argv[
2
])) {
+ if(!check_id(argv[
1
])) {
fprintf(stderr, "Invalid name for node.\n");
return 1;
}