diff --git a/deps/mariadb-client-library/x509cache.patch b/deps/mariadb-client-library/x509cache.patch index cd9a125b1..442730f80 100644 --- a/deps/mariadb-client-library/x509cache.patch +++ b/deps/mariadb-client-library/x509cache.patch @@ -35,6 +35,9 @@ index 916024a8..79564a10 100644 int STDCALL mysql_set_server_option(MYSQL *mysql, diff --git libmariadb/secure/openssl.c libmariadb/secure/openssl.c ++index 916024a8..79564a10 100644 ++--- libmariadb/secure/openssl.c +++++ libmariadb/secure/openssl.c @@ -30,6 +30,11 @@ #include #include @@ -81,9 +84,9 @@ diff --git libmariadb/secure/openssl.c libmariadb/secure/openssl.c + close(fd); + return 0; + } -+ // Compute the SHA-1 hash + SHA1(fb, statbuf.st_size, temp); -+ for (int i=0; i < SHA_DIGEST_LENGTH; i++) { ++ int i=0; ++ for (i=0; i < SHA_DIGEST_LENGTH; i++) { + sprintf((char*)&(file_sha1[i*2]), "%02x", temp[i]); + } + free(fb);