mysql8.0/mysql-ssl-bugs.patch
Tom Lane 22c32d815d Update to MySQL 5.0.37. Resolves: #231838 Put client library into a
separate mysql-libs RPM to reduce dependencies Resolves: #205630 Minor
    rpmlint cleanups.
2024-02-05 16:59:12 +01:00

17 lines
693 B
Diff

Workaround for recently-introduced SSL breakage, filed as upstream bug
#24121 (why is this still not fixed in 5.0.37?)
diff -Naur mysql-5.0.33.orig/sql-common/client.c mysql-5.0.33/sql-common/client.c
--- mysql-5.0.33.orig/sql-common/client.c 2007-01-09 07:51:07.000000000 -0500
+++ mysql-5.0.33/sql-common/client.c 2007-02-09 12:36:17.000000000 -0500
@@ -3017,7 +3017,7 @@
mysql->reconnect= *(my_bool *) arg;
break;
case MYSQL_OPT_SSL_VERIFY_SERVER_CERT:
- if (!arg || test(*(uint*) arg))
+ if (!arg || test(*(my_bool*) arg))
mysql->options.client_flag|= CLIENT_SSL_VERIFY_SERVER_CERT;
else
mysql->options.client_flag&= ~CLIENT_SSL_VERIFY_SERVER_CERT;