From 3bc88e4eb97b06bc9fcb019bd91c0d50a107f3d4 Mon Sep 17 00:00:00 2001 From: VilhoRaatikka Date: Thu, 21 Aug 2014 23:31:23 +0300 Subject: [PATCH] skygw_get_canonical didn't return NULL pointerin cases where parsing info didn't exist or something went wrong. --- query_classifier/query_classifier.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/query_classifier/query_classifier.cc b/query_classifier/query_classifier.cc index 2f29ddba1..8379c1b89 100644 --- a/query_classifier/query_classifier.cc +++ b/query_classifier/query_classifier.cc @@ -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; }