From 70d6947c6ef97c5c8ccbc908b94651432e18cf9c Mon Sep 17 00:00:00 2001 From: Alois Zoitl Date: Wed, 20 Nov 2024 23:18:01 +0100 Subject: [PATCH] Fixed double pointer generation in CIP QOS attribute handling --- source/src/cip/cipqos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/cip/cipqos.c b/source/src/cip/cipqos.c index 8598f9eac..25a2b4230 100644 --- a/source/src/cip/cipqos.c +++ b/source/src/cip/cipqos.c @@ -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