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