From 18ca4189f0b17ac6e274182db9a375fc93938b1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 8 May 2017 21:58:24 +0300 Subject: [PATCH] Fix testbinlogrouter The test used service credentials directly instead of copying them. --- server/modules/routing/binlogrouter/test/testbinlog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/modules/routing/binlogrouter/test/testbinlog.c b/server/modules/routing/binlogrouter/test/testbinlog.c index 3a0ae59f0..2125299b3 100644 --- a/server/modules/routing/binlogrouter/test/testbinlog.c +++ b/server/modules/routing/binlogrouter/test/testbinlog.c @@ -129,8 +129,8 @@ int main(int argc, char **argv) } inst->service = service; - inst->user = service->credentials.name; - inst->password = service->credentials.authdata; + inst->user = MXS_STRDUP_A(service->credentials.name); + inst->password = MXS_STRDUP_A(service->credentials.authdata); MXS_NOTICE("testbinlog v1.0");