Incorrect addition of descriptor AttributeDescriptor in Set-request-with-datablock

Project: 
gurux.dlms.c

File dlms.c, line 5764

If the PDU type is Set-request-with-datablock, the descriptor AttributeDescriptor is added to the message again.

// Add attribute descriptor.
if (ret == 0 && p->attributeDescriptor != NULL)
{
ret = bb_set(reply, p->attributeDescriptor->data, p->attributeDescriptor->size);
}

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