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:
Simon Arlott 2016-04-23 23:21:47 +01:00
parent cf430c1a40
commit cc02bdf3a6
No known key found for this signature in database
GPG key ID: C8975F2043CA5D24

View file

@ -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));