client: connid_get() should check MyConnect(), not MyClient().

This commit is contained in:
William Pitcock 2016-04-23 14:17:09 -05:00
parent 84e3e445aa
commit 5c63bfe8b1

View file

@ -140,8 +140,8 @@ init_client(void)
uint32_t
connid_get(struct Client *client_p)
{
s_assert(MyClient(client_p));
if (!MyClient(client_p))
s_assert(MyConnect(client_p));
if (!MyConnect(client_p))
return 0;
/* find a connid that is available */