Set pointer to client to 0 when client was erased

Signed-off-by: Mariusz Suchora <mariusz.suchora@tieto.com>
This commit is contained in:
Mariusz Suchora
2018-02-23 10:40:06 +01:00
parent b6192d863b
commit ef715ebfa7
2 changed files with 3 additions and 2 deletions

View File

@@ -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())
{