Skip to content

Commit

Permalink
refactor(server): Return session attributes with UA_VARIANT_DATA_NODE…
Browse files Browse the repository at this point in the history
…LETE
  • Loading branch information
jpfr committed Nov 10, 2023
1 parent 1bd9327 commit dee1a2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/ua_session.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,9 @@ getSessionAttribute(UA_Server *server, const UA_NodeId *sessionId,

if(copy)
return UA_Variant_copy(attr, outValue);

*outValue = *attr;
outValue->storageType = UA_VARIANT_DATA_NODELETE;
return UA_STATUSCODE_GOOD;
}

Expand Down

0 comments on commit dee1a2c

Please sign in to comment.