summaryrefslogtreecommitdiff
path: root/databases/mysqlwsrep56-server/files/patch-sql-common_client__authentication.cc
blob: fdbf5eb98562ebf4b13eaf0f0f8b68fd19ed7b53 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
sql-common/client_authentication.cc:87:56: error: comparison between pointer and integer ('char *' and 'int')
      mysql->options.extension->server_public_key_path != '\0')
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~

Part of https://github.com/mysql/mysql-server/commit/db1bde79b1b4

--- sql-common/client_authentication.cc.orig	2017-09-13 15:49:17 UTC
+++ sql-common/client_authentication.cc
@@ -84,7 +84,7 @@ RSA *rsa_init(MYSQL *mysql)
 
   if (mysql->options.extension != NULL &&
       mysql->options.extension->server_public_key_path != NULL &&
-      mysql->options.extension->server_public_key_path != '\0')
+      mysql->options.extension->server_public_key_path[0] != '\0')
   {
     pub_key_file= fopen(mysql->options.extension->server_public_key_path,
                         "r");