Skip to content

Commit

Permalink
fix(core): Fix type access when comparing ExtensionObjects
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfr committed Sep 29, 2024
1 parent c63520c commit 0a46127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ua_types.c
Original file line number Diff line number Diff line change
Expand Up @@ -1436,7 +1436,7 @@ extensionObjectOrder(const UA_ExtensionObject *p1, const UA_ExtensionObject *p2,
case UA_EXTENSIONOBJECT_DECODED:
default: {
const UA_DataType *type1 = p1->content.decoded.type;
const UA_DataType *type2 = p1->content.decoded.type;
const UA_DataType *type2 = p2->content.decoded.type;
if(type1 != type2)
return ((uintptr_t)type1 < (uintptr_t)type2) ? UA_ORDER_LESS : UA_ORDER_MORE;
if(!type1)
Expand Down

0 comments on commit 0a46127

Please sign in to comment.