From 89c7b907a31402e4388802b6ee31807d54d80dd9 Mon Sep 17 00:00:00 2001 From: VilhoRaatikka Date: Fri, 24 Oct 2014 18:30:53 +0300 Subject: [PATCH] Addition to Fix of bug #585, http://bugs.mariadb.com/show_bug.cgi?id=585 regexfilter.c:routeQuery called modutil_replace_SQL which resulted in multiple buffers in query GWBUF. Those weren't handled properly later. Added call for gwbug_make_contiguous. --- server/modules/filter/regexfilter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/server/modules/filter/regexfilter.c b/server/modules/filter/regexfilter.c index c2e89ca09..08962b0ce 100644 --- a/server/modules/filter/regexfilter.c +++ b/server/modules/filter/regexfilter.c @@ -315,6 +315,7 @@ int length; if (newsql) { queue = modutil_replace_SQL(queue, newsql); + queue = gwbuf_make_contiguous(queue); free(newsql); my_session->replacements++; }