MXS-3200 Ensure that passed in p to buffer remains valid

The pointer to pointer to GWBUF must in all cases be updated.
Otherwise it will lead to
1) access to free data, and
2) a double delete.
This commit is contained in:
Johan Wikman 2020-10-06 16:43:59 +03:00
parent 95792c8185
commit 147ed8ef22

View File

@ -1026,6 +1026,7 @@ int SchemaRouterSession::inspect_mapping_states(SSRBackend& bref,
}
else if (rc == SHOWDB_FATAL_ERROR)
{
*wbuf = writebuf;
return -1;
}
else