PDUs of type Set-Response-Last-Datablock are interpreted as if they were Set-Response-Datablock

Project: 
gurux.dlms.c

File dlms.c, line 4477, function dlms_handleSetResponse()

Type Set-Response-Last-Datablock PDU include a Result element that is not present in type Set-Response-Datablock PDU.

In the code both PDUs are interpreted as having the same elements:

else if (type == DLMS_SET_RESPONSE_TYPE_DATA_BLOCK || type == DLMS_SET_RESPONSE_TYPE_LAST_DATA_BLOCK)
{
uint32_t tmp;
if ((ret = bb_getUInt32(&data->data, &tmp)) != 0)
{
return ret;
}
}

Status: 
Active
Priority: 
Normal
Category: 
Bug report
Component: 
Code
Reporter: 
gunmox
Created: 
Thu, 10/28/2021 - 23:46
Updated: 
Thu, 10/28/2021 - 23:46