Skip to content

Commit

Permalink
Fixed double pointer generation in CIP QOS attribute handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Alois Zoitl authored and azoitl committed Nov 20, 2024
1 parent 1e99582 commit 4197664
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/src/cip/cipqos.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ int DecodeCipQoSAttribute(void *const data,
CipMessageRouterRequest *const message_router_request,
CipMessageRouterResponse *const message_router_response) {

const EipUint8 **const cip_message = message_router_request->data;
const EipUint8 **const cip_message = &(message_router_request->data);

int number_of_decoded_bytes = -1;

if (NULL != cip_message) {

CipUsint attribute_value_received = GetUsintFromMessage(&cip_message);
CipUsint attribute_value_received = GetUsintFromMessage(cip_message);
if (attribute_value_received < 64U) {

*(CipUsint *)data = attribute_value_received; //write value to attribute
Expand Down

0 comments on commit 4197664

Please sign in to comment.