ircd: fix assert in client_release_connids
The connection may have already been closed and MyConnect cleared. It's only a bug if the connection somehow has connids but is not our connection.
This commit is contained in:
parent
cf430c1a40
commit
cc02bdf3a6
1 changed files with 2 additions and 3 deletions
|
@ -194,9 +194,8 @@ client_release_connids(struct Client *client_p)
|
|||
{
|
||||
rb_dlink_node *ptr, *ptr2;
|
||||
|
||||
s_assert(MyConnect(client_p));
|
||||
if (!MyConnect(client_p))
|
||||
return;
|
||||
if (client_p->localClient->connids.head)
|
||||
s_assert(MyConnect(client_p));
|
||||
|
||||
RB_DLINK_FOREACH_SAFE(ptr, ptr2, client_p->localClient->connids.head)
|
||||
connid_put(RB_POINTER_TO_UINT(ptr->data));
|
||||
|
|
Loading…
Reference in a new issue