Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SoftEtherVPN/SoftEtherVPN_Stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Clausen <cm0x4d@codemonkey.ch>2016-10-03 14:31:03 +0300
committerMichael Clausen <cm0x4d@codemonkey.ch>2016-10-03 14:31:03 +0300
commit462840cf6effdb35179664e4b4c95f9325bc1d73 (patch)
tree3fd700d2f7add7b85b21af0032f7f2839f00fdc7
parent1e17c9bcfd7e7b31756aa5389bcbff76c2c9c88a (diff)
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()
-rw-r--r--src/Cedar/Client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Cedar/Client.c b/src/Cedar/Client.c
index d4dd39be..9c907ff7 100644
--- a/src/Cedar/Client.c
+++ b/src/Cedar/Client.c
@@ -6661,7 +6661,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);