Skip to content

Commit

Permalink
fix(client): variable name fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JulZimmermann authored and jpfr committed Jul 18, 2020
1 parent cb3e84c commit 70b87b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/ua_client_connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 70b87b4

Please sign in to comment.