mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-13 23:46:51 +01:00
Set pointer to client to 0 when client was erased
Signed-off-by: Mariusz Suchora <mariusz.suchora@tieto.com>
This commit is contained in:
@@ -124,7 +124,7 @@ bool ClientList::authorize(const char* fileName)
|
||||
return _authorize;
|
||||
}
|
||||
|
||||
void ClientList::erase(Client* client)
|
||||
void ClientList::erase(Client*& client)
|
||||
{
|
||||
if ( !_authorize && client->erasable())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user