Explorar o código

Server: Disable ServerTimestamp if manually set but not requested

Julius Pfrommer %!s(int64=5) %!d(string=hai) anos
pai
achega
45869a6a74
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/server/ua_services_attribute.c

+ 3 - 0
src/server/ua_services_attribute.c

@@ -362,6 +362,9 @@ ReadWithNode(const UA_Node *node, UA_Server *server, UA_Session *session,
             v->serverTimestamp = UA_DateTime_now();
             v->hasServerTimestamp = true;
         }
+    } else {
+        /* In case the ServerTimestamp has been set manually */
+        v->hasServerTimestamp = false;
     }
 
     /* Handle source time stamp */