When using auth_user, the transition to the CL_WAITING_LOGIN state
would not initialize the client->wait_start field. This would either
lead to garbage values being recorded, or under assertions enabled it
would crash in activate_client().
(test_auth_user was actually reproducing this problem, but a crash
requires assertions enabled and new memory being all zero, so it was
difficult to catch it.)
Author: @pinaraf
see #393
statlist_append(&login_client_list, &client->head);
break;
case CL_WAITING:
- client->wait_start = get_cached_time();
- /* fallthrough */
case CL_WAITING_LOGIN:
+ client->wait_start = get_cached_time();
statlist_append(&pool->waiting_client_list, &client->head);
break;
case CL_ACTIVE: