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:
@ -1026,6 +1026,7 @@ int SchemaRouterSession::inspect_mapping_states(SSRBackend& bref,
|
|||||||
}
|
}
|
||||||
else if (rc == SHOWDB_FATAL_ERROR)
|
else if (rc == SHOWDB_FATAL_ERROR)
|
||||||
{
|
{
|
||||||
|
*wbuf = writebuf;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user