Fix testbinlogrouter

The test used service credentials directly instead of copying them.
This commit is contained in:
Markus Mäkelä
2017-05-08 21:58:24 +03:00
parent c27b2a1805
commit 18ca4189f0

View File

@ -129,8 +129,8 @@ int main(int argc, char **argv)
} }
inst->service = service; inst->service = service;
inst->user = service->credentials.name; inst->user = MXS_STRDUP_A(service->credentials.name);
inst->password = service->credentials.authdata; inst->password = MXS_STRDUP_A(service->credentials.authdata);
MXS_NOTICE("testbinlog v1.0"); MXS_NOTICE("testbinlog v1.0");