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

--- sql-common/client_authentication.cc.orig	2018-08-27 19:39:51 UTC
+++ sql-common/client_authentication.cc
@@ -83,7 +83,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')
   {
     pub_key_file= fopen(mysql->options.extension->server_public_key_path,
                         "r");