From 178a00f2d3767bfde663a9280b77d22fa3f5a00e Mon Sep 17 00:00:00 2001 From: cm0x4d Date: Thu, 28 Sep 2017 10:51:29 +0200 Subject: [PATCH] Using client parameter in function CtConnect Using the global client variable might lead to strange behavoir if multiple clients are allocated and to crashes in the case the client was not initialized with CtStartClient() --- src/Cedar/Client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cedar/Client.c b/src/Cedar/Client.c index ccfbe665..c4aa26d7 100644 --- a/src/Cedar/Client.c +++ b/src/Cedar/Client.c @@ -6663,7 +6663,7 @@ bool CtConnect(CLIENT *c, RPC_CLIENT_CONNECT *connect) CiSetError(c, ERR_ACCOUNT_ACTIVE); } else if (r->ClientAuth->AuthType == CLIENT_AUTHTYPE_SECURE && - client->UseSecureDeviceId == 0) + c->UseSecureDeviceId == 0) { // Secure device is not specified CiSetError(c, ERR_NO_SECURE_DEVICE_SPECIFIED);