Fix node name check for "connect" and "disconnect" commands.
This commit is contained in:
parent
5567c0d410
commit
d74b81b61e
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue