From 70b87b47fe8300ddbaafbdec34319a71a8640199 Mon Sep 17 00:00:00 2001 From: JulZimmermann Date: Sat, 18 Jul 2020 13:48:42 +0200 Subject: [PATCH] fix(client): variable name fix --- src/client/ua_client_connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/ua_client_connect.c b/src/client/ua_client_connect.c index f1b0050460d..6089d87a999 100644 --- a/src/client/ua_client_connect.c +++ b/src/client/ua_client_connect.c @@ -600,7 +600,7 @@ selectEndpoint(UA_Client *client, const UA_String endpointUrl) { UA_UserTokenPolicy* userToken = &endpoint->userIdentityTokens[j]; /* Usertokens also have a security policy... */ - if (tokenPolicy->tokenType != UA_USERTOKENTYPE_ANONYMOUS && + if (userToken->tokenType != UA_USERTOKENTYPE_ANONYMOUS && userToken->securityPolicyUri.length > 0 && !getSecurityPolicy(client, userToken->securityPolicyUri)) { UA_LOG_INFO(&client->config.logger, UA_LOGCATEGORY_CLIENT, "Rejecting UserTokenPolicy %lu in endpoint %lu: security policy '%.*s' not available",