From 288c6a1ff4df2430d1e549735087f614fd1e8dea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Fri, 30 Dec 2016 11:29:28 +0000 Subject: [PATCH] Remove assert() for unknown commands #859 --- lib/MySQL_Session.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/MySQL_Session.cpp b/lib/MySQL_Session.cpp index ca3de7e80..cea5deb04 100644 --- a/lib/MySQL_Session.cpp +++ b/lib/MySQL_Session.cpp @@ -2046,7 +2046,10 @@ __get_pkts_from_client: handler___status_WAITING_CLIENT_DATA___STATE_SLEEP___MYSQL_COM_FIELD_LIST(&pkt); break; default: - assert(0); + proxy_error("RECEIVED AN UNKNOWN COMMAND: %d -- PLEASE REPORT A BUG\n", c); + l_free(pkt.size,pkt.ptr); + return -1; // immediately drop the connection + // assert(0); // see issue #859 break; } break;