Skip to content

Commit

Permalink
Use correct address when reading array members of session diagnostic …
Browse files Browse the repository at this point in the history
…types.
  • Loading branch information
the-om authored and jpfr committed Feb 20, 2024
1 parent fe54153 commit 05b48e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/ua_server_ns0_diagnostics.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ readSessionDiagnostics(UA_Server *server,
res = UA_Variant_setScalarCopy(&value->value, content, type);
} else {
size_t len = *(size_t*)content;
content = (void*)(((uintptr_t)content) + sizeof(size_t));
content = *(void**)((uintptr_t)content + sizeof(size_t));
res = UA_Variant_setArrayCopy(&value->value, content, len, type);
}
if(UA_LIKELY(res == UA_STATUSCODE_GOOD))
Expand Down

0 comments on commit 05b48e4

Please sign in to comment.