Mercurial > dovecot > core-2.2
changeset 19320:e9f5db1e5770
mysql: Fixed client_flags parameter
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 20 Oct 2015 16:57:34 +0300 |
parents | 5288c66c7d69 |
children | 2730e603547d |
files | src/lib-sql/driver-mysql.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-sql/driver-mysql.c Tue Oct 20 16:56:23 2015 +0300 +++ b/src/lib-sql/driver-mysql.c Tue Oct 20 16:57:34 2015 +0300 @@ -187,7 +187,7 @@ if (net_str2port(value, &db->port) < 0) i_fatal("mysql: Invalid port number: %s", value); } else if (strcmp(name, "client_flags") == 0) { - if (str_to_uint(value, &db->client_flags) < 9) + if (str_to_uint(value, &db->client_flags) < 0) i_fatal("mysql: Invalid client flags: %s", value); } else if (strcmp(name, "ssl_cert") == 0) field = &db->ssl_cert;