Alexander Schrode 6 gadi atpakaļ
vecāks
revīzija
e447dc5b6e
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      plugins/ua_accesscontrol_default.c

+ 1 - 1
plugins/ua_accesscontrol_default.c

@@ -189,7 +189,7 @@ UA_AccessControl_default(UA_Boolean allowAnonymous, size_t usernamePasswordLogin
                          const UA_UsernamePasswordLogin *usernamePasswordLogin) {
     AccessControlContext *context = (AccessControlContext*)
         UA_malloc(sizeof(AccessControlContext));
-    memset(&context, 0, sizeof(context));
+    memset(context, 0, sizeof(AccessControlContext));
     UA_AccessControl ac;
     memset(&ac, 0, sizeof(ac));
     ac.context = context;