fixed error message on bad IP/port
authorAndrew Tridgell <tridge@samba.org>
Wed, 4 Jul 2007 23:59:45 +0000 (09:59 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 4 Jul 2007 23:59:45 +0000 (09:59 +1000)
(This used to be ctdb commit ad2d8615c028d55bc5e94c9d7bd8432cafde4a69)

ctdb/tools/ctdb.c

index e6c41d93b3baf029c792a81b084c0e2b217aed45..96286795879dd822798f27a20c53990d309a6df0 100644 (file)
@@ -316,7 +316,7 @@ static int kill_tcp(struct ctdb_context *ctdb, int argc, const char **argv)
        }
 
        if (!parse_ip_port(argv[0], &src)) {
-               printf("Bad IP:port '%s'\n", argv[1]);
+               printf("Bad IP:port '%s'\n", argv[0]);
                return -1;
        }
 
@@ -350,7 +350,7 @@ static int tickle_tcp(struct ctdb_context *ctdb, int argc, const char **argv)
        }
 
        if (!parse_ip_port(argv[0], &src)) {
-               printf("Bad IP:port '%s'\n", argv[1]);
+               printf("Bad IP:port '%s'\n", argv[0]);
                return -1;
        }