Skip to content
Permalink
Browse files
Follow-up fix to MDEV-16865: InnoDB fts_query() ignores KILL
fts_query(): Remove a redundant condition (result will never be NULL),
and instead check if *result is NULL, to prevent SIGSEGV in
fts_query_free_result().
  • Loading branch information
dr-m committed Aug 3, 2018
1 parent 90b66c1 commit b963cba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
@@ -4019,7 +4019,7 @@ fts_query(
if (trx_is_interrupted(trx)) {
error = DB_INTERRUPTED;
ut_free(lc_query_str);
if (result != NULL) {
if (*result) {
fts_query_free_result(*result);
}
goto func_exit;
@@ -4038,7 +4038,7 @@ fts_query(
if (trx_is_interrupted(trx)) {
error = DB_INTERRUPTED;
ut_free(lc_query_str);
if (result != NULL) {
if (*result) {
fts_query_free_result(*result);
}
goto func_exit;

0 comments on commit b963cba

Please sign in to comment.