Skip to content

Commit

Permalink
Correctly initialize AccessControlContext (fix #2826)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfr committed Jun 18, 2019
1 parent d0c2e59 commit 4e2c828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/ua_accesscontrol_default.c
Expand Up @@ -188,7 +188,7 @@ UA_AccessControl
UA_AccessControl_default(UA_Boolean allowAnonymous, size_t usernamePasswordLoginSize,
const UA_UsernamePasswordLogin *usernamePasswordLogin) {
AccessControlContext *context = (AccessControlContext*)
UA_malloc(sizeof(AccessControlContext));
UA_calloc(1, sizeof(AccessControlContext));

UA_AccessControl ac;
memset(&ac, 0, sizeof(ac));
Expand Down

0 comments on commit 4e2c828

Please sign in to comment.