From 84648dfbdd96d1c56f5e79c3b5b3bc195567e226 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 24 Aug 2004 20:13:31 +0500 Subject: more accurate processing of find_type result (Bug #4998 --protocol doesn't reject bad values) client/mysql.cc: more accurate processing of find_type result client/mysqladmin.c: more accurate processing of find_type result client/mysqlbinlog.cc: more accurate processing of find_type result client/mysqlcheck.c: more accurate processing of find_type result client/mysqldump.c: more accurate processing of find_type result client/mysqlimport.c: more accurate processing of find_type result client/mysqlshow.c: more accurate processing of find_type result sql-common/client.c: more accurate processing of find_type result --- client/mysqlshow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client/mysqlshow.c') diff --git a/client/mysqlshow.c b/client/mysqlshow.c index 285b229550f..05108bd03c8 100644 --- a/client/mysqlshow.c +++ b/client/mysqlshow.c @@ -268,7 +268,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)), break; case OPT_MYSQL_PROTOCOL: { - if (!(opt_protocol= find_type(argument, &sql_protocol_typelib,0))) + if ((opt_protocol= find_type(argument, &sql_protocol_typelib,0)) <= 0) { fprintf(stderr, "Unknown option to protocol: %s\n", argument); exit(1); -- cgit v1.2.1