mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-13 15:36:51 +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;
|
_first = elm;
|
||||||
_end = elm;
|
_end = elm;
|
||||||
}
|
}
|
||||||
elm->_prev = _end;
|
else
|
||||||
_end->_next = elm;
|
{
|
||||||
|
_end->_next = elm;
|
||||||
|
elm->_prev = _end;
|
||||||
|
_end = elm;
|
||||||
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user