From 86a2144d5a20bae5b7a201b4175b945d2878c1fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Wed, 8 Mar 2017 21:55:20 +0000 Subject: [PATCH] Error in fast_forward causes a crash #733 --- lib/MySQL_Protocol.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/MySQL_Protocol.cpp b/lib/MySQL_Protocol.cpp index 4afbbd54a5..390dbff12f 100644 --- a/lib/MySQL_Protocol.cpp +++ b/lib/MySQL_Protocol.cpp @@ -568,6 +568,10 @@ bool MySQL_Protocol::generate_pkt_ERR(bool send, void **ptr, unsigned int *len, break; case STATE_OK: break; + case STATE_SLEEP: + if ((*myds)->sess->session_fast_forward==true) { // see issue #733 + break; + } default: assert(0); }