Skip to content

Commit 70b87b4

Browse files
JulZimmermannjpfr
authored andcommitted
fix(client): variable name fix
1 parent cb3e84c commit 70b87b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/ua_client_connect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ selectEndpoint(UA_Client *client, const UA_String endpointUrl) {
600600
UA_UserTokenPolicy* userToken = &endpoint->userIdentityTokens[j];
601601

602602
/* Usertokens also have a security policy... */
603-
if (tokenPolicy->tokenType != UA_USERTOKENTYPE_ANONYMOUS &&
603+
if (userToken->tokenType != UA_USERTOKENTYPE_ANONYMOUS &&
604604
userToken->securityPolicyUri.length > 0 &&
605605
!getSecurityPolicy(client, userToken->securityPolicyUri)) {
606606
UA_LOG_INFO(&client->config.logger, UA_LOGCATEGORY_CLIENT, "Rejecting UserTokenPolicy %lu in endpoint %lu: security policy '%.*s' not available",

0 commit comments

Comments
 (0)