mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-13 07:26:52 +01:00
Fix adding elements to WaitREGACKPacketList
Signed-off-by: Mariusz Suchora <mariusz.suchora@tieto.com>
This commit is contained in:
@@ -1155,8 +1155,12 @@ int WaitREGACKPacketList::setPacket(MQTTSNPacket* packet, uint16_t REGACKMsgId)
|
||||
_first = elm;
|
||||
_end = elm;
|
||||
}
|
||||
elm->_prev = _end;
|
||||
_end->_next = elm;
|
||||
else
|
||||
{
|
||||
_end->_next = elm;
|
||||
elm->_prev = _end;
|
||||
_end = elm;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user