authd: don't decrement refcount twice when accepting the client

This commit is contained in:
Simon Arlott 2016-04-30 17:06:21 +01:00
parent 896370cc3e
commit 3b0b4037d0
No known key found for this signature in database
GPG key ID: C8975F2043CA5D24

View file

@ -240,7 +240,7 @@ provider_done(struct auth_client *auth, uint32_t id)
if(auth->refcount == 0 && !auth->providers_starting)
{
/* All done */
accept_client(auth, id);
accept_client(auth, UINT32_MAX);
return;
}