skygw_get_canonical didn't return NULL pointerin cases where parsing info didn't exist or something went wrong.
This commit is contained in:
@ -865,6 +865,7 @@ char* skygw_get_canonical(
|
|||||||
|
|
||||||
if (querybuf->gwbuf_parsing_info == NULL)
|
if (querybuf->gwbuf_parsing_info == NULL)
|
||||||
{
|
{
|
||||||
|
querystr = NULL;
|
||||||
goto retblock;
|
goto retblock;
|
||||||
}
|
}
|
||||||
pi = (parsing_info_t*)querybuf->gwbuf_parsing_info;
|
pi = (parsing_info_t*)querybuf->gwbuf_parsing_info;
|
||||||
@ -878,6 +879,7 @@ char* skygw_get_canonical(
|
|||||||
mysql != NULL &&
|
mysql != NULL &&
|
||||||
thd != NULL &&
|
thd != NULL &&
|
||||||
lex != NULL);
|
lex != NULL);
|
||||||
|
querystr = NULL;
|
||||||
goto retblock;
|
goto retblock;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user