From: Guus Sliepen Date: Thu, 30 Aug 2012 12:00:34 +0000 (+0200) Subject: Fix node name check for "connect" and "disconnect" commands. X-Git-Tag: import-tinc-1.1~307 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=d74b81b61e87c66d364a8590a48d87773ad2652c;p=meshlink Fix node name check for "connect" and "disconnect" commands. --- diff --git a/src/tincctl.c b/src/tincctl.c index fa525337..00d8eb90 100644 --- 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; }