0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-18 07:50:57 +01:00

ircd: do nothing in client_release_connids if !MyConnect

This commit is contained in:
Simon Arlott 2016-04-23 23:25:25 +01:00
parent cc02bdf3a6
commit 558744e520
No known key found for this signature in database
GPG key ID: C8975F2043CA5D24

View file

@ -197,6 +197,9 @@ client_release_connids(struct Client *client_p)
if (client_p->localClient->connids.head) if (client_p->localClient->connids.head)
s_assert(MyConnect(client_p)); s_assert(MyConnect(client_p));
if (!MyConnect(client_p))
return;
RB_DLINK_FOREACH_SAFE(ptr, ptr2, client_p->localClient->connids.head) RB_DLINK_FOREACH_SAFE(ptr, ptr2, client_p->localClient->connids.head)
connid_put(RB_POINTER_TO_UINT(ptr->data)); connid_put(RB_POINTER_TO_UINT(ptr->data));
} }