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++; }