mysql_common.c:protocol_add_srv_command didn't check that protocol status was MYSQL_PROTOCOL_ACTIVE and wrote to freed memory.

This commit is contained in:
VilhoRaatikka
2014-08-14 17:23:46 +03:00
parent 15e3ef6950
commit 2393ac57e9
2 changed files with 7 additions and 1 deletions

View File

@ -1006,7 +1006,8 @@ gw_backend_hangup(DCB *dcb)
&succp);
/** There are not required backends available, close session. */
if (!succp) {
if (!succp)
{
#if defined(SS_DEBUG)
LOGIF(LE, (skygw_log_write_flush(
LOGFILE_ERROR,