skygw_get_canonical didn't return NULL pointerin cases where parsing info didn't exist or something went wrong.

This commit is contained in:
VilhoRaatikka
2014-08-21 23:31:23 +03:00
parent 3a5b8ef64c
commit 3bc88e4eb9

View File

@ -865,6 +865,7 @@ char* skygw_get_canonical(
if (querybuf->gwbuf_parsing_info == NULL)
{
querystr = NULL;
goto retblock;
}
pi = (parsing_info_t*)querybuf->gwbuf_parsing_info;
@ -878,6 +879,7 @@ char* skygw_get_canonical(
mysql != NULL &&
thd != NULL &&
lex != NULL);
querystr = NULL;
goto retblock;
}