Browse Source

fix stateless extension

Julius Pfrommer 10 years ago
parent
commit
8a897eccdc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/server/ua_services_attribute.c

+ 2 - 2
src/server/ua_services_attribute.c

@@ -295,11 +295,11 @@ void Service_Read(UA_Server *server, UA_Session *session, const UA_ReadRequest *
 		UA_Variant variant;
 		UA_Variant_init(&variant);
 		variant.type = &UA_TYPES[UA_TYPES_DATETIME];
-		variant.storage.data.arrayLength = request->nodesToReadSize;
+		variant.arrayLength = request->nodesToReadSize;
 
 		UA_DateTime* expireArray = UA_NULL;
 		expireArray = UA_Array_new(&UA_TYPES[UA_TYPES_DATETIME], request->nodesToReadSize);
-		variant.storage.data.dataPtr = expireArray;
+		variant.dataPtr = expireArray;
 
 		UA_ByteString str;
 		UA_ByteString_init(&str);