From b5f9ec7ca87087138da6bf037879221bf806ef23 Mon Sep 17 00:00:00 2001 From: Daniyaal Khan Date: Fri, 31 Jan 2025 11:54:34 +0530 Subject: [PATCH] Modified condition from gt to gte for distinguishing OK packet from EOF packet. --- sql/protocol_classic.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/protocol_classic.cc b/sql/protocol_classic.cc index 5a9eb6d4b432..ef9f4c008932 100644 --- a/sql/protocol_classic.cc +++ b/sql/protocol_classic.cc @@ -717,7 +717,7 @@ bool net_send_error(NET *net, uint sql_errno, const char *err) { These rules distinguish whether the packet represents OK or EOF: - - OK: header = 0 and length of packet > 7 + - OK: header = 0 and length of packet >= 7 - EOF: header = 0xfe and length of packet < 9 To ensure backward compatibility between old (prior to 5.7.5) and