Skip to content

Commit

Permalink
Fix for issue #968
Browse files Browse the repository at this point in the history
- This fixes #968
- Add a byte swap to the participant GUID prefix

Signed-off-by: Martijn Reicher <martijn.reicher@adlinktech.com>
  • Loading branch information
reicheratwork authored and eboasson committed Oct 8, 2021
1 parent c8d4ab4 commit 7baf8cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/ddsi/src/q_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1552,6 +1552,7 @@ int rtps_init (struct ddsi_domaingv *gv)
gv->ppguid_base.prefix.s[1] = NN_VENDORID_ECLIPSE.id[1];
DDSRT_STATIC_ASSERT (sizeof (gv->ppguid_base.prefix.s) > 2 && sizeof (gv->ppguid_base.prefix.s) - 2 <= sizeof (digest));
memcpy (&gv->ppguid_base.prefix.s[2], digest, sizeof (gv->ppguid_base.prefix.s) - 2);
gv->ppguid_base.prefix = nn_ntoh_guid_prefix (gv->ppguid_base.prefix);
gv->ppguid_base.entityid.u = NN_ENTITYID_PARTICIPANT;
}

Expand Down

0 comments on commit 7baf8cc

Please sign in to comment.