From: Andrew Tridgell Date: Wed, 4 Jul 2007 23:59:45 +0000 (+1000) Subject: fixed error message on bad IP/port X-Git-Tag: tevent-0.9.20~348^2~2471 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3b4fa64dd9140a5233035351d00605738d134159;p=thirdparty%2Fsamba.git fixed error message on bad IP/port (This used to be ctdb commit ad2d8615c028d55bc5e94c9d7bd8432cafde4a69) --- diff --git a/ctdb/tools/ctdb.c b/ctdb/tools/ctdb.c index e6c41d93b3b..96286795879 100644 --- a/ctdb/tools/ctdb.c +++ b/ctdb/tools/ctdb.c @@ -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; }