From 89a53ef37405af6e724e09fc6d078b59fb7f1e94 Mon Sep 17 00:00:00 2001 From: "msvensson@neptunus.(none)" <> Date: Tue, 3 Oct 2006 23:11:47 +0200 Subject: [PATCH] Fix problem when both option SSL and COMPRESS specified --- client/mysqltest.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/mysqltest.c b/client/mysqltest.c index d057e7ea4f0..f52b4eafe15 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -2991,7 +2991,12 @@ void do_connect(struct st_command *command) con_options= ds_options.str; while (*con_options) { - char* end= con_options; + char* end; + /* Step past any spaces in beginning of option*/ + while (*con_options && my_isspace(charset_info, *con_options)) + con_options++; + /* Find end of this option */ + end= con_options; while (*end && !my_isspace(charset_info, *end)) end++; if (!strncmp(con_options, "SSL", 3))