From 11a43bf76830fa1885b6eed73c6c7c8602a4cc69 Mon Sep 17 00:00:00 2001 From: Rene Cannao Date: Sat, 14 Feb 2026 17:38:13 +0000 Subject: [PATCH] Fix uninitialized max_allowed_pkt in MySQL_Connection constructor Initialize options.max_allowed_pkt to 0 to prevent Valgrind errors when logging handshake debug information. --- lib/mysql_connection.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/mysql_connection.cpp b/lib/mysql_connection.cpp index 7ba71030f..2247a31bd 100644 --- a/lib/mysql_connection.cpp +++ b/lib/mysql_connection.cpp @@ -457,6 +457,7 @@ MySQL_Connection::MySQL_Connection() { options.ldap_user_variable_sent=false; options.session_track_gtids_int=0; options.server_capabilities=0; + options.max_allowed_pkt=0; compression_pkt_id=0; mysql_result=NULL;