authd: fix race with aborting clients.
This commit is contained in:
parent
6d5edc6f53
commit
a3b112f426
1 changed files with 3 additions and 2 deletions
|
@ -342,8 +342,9 @@ handle_cancel_connection(int parc, char *parv[])
|
|||
|
||||
if((auth = rb_dictionary_retrieve(auth_clients, RB_UINT_TO_POINTER((uint32_t)lcid))) == NULL)
|
||||
{
|
||||
warn_opers(L_CRIT, "provider: tried to cancel nonexistent connection %lx", lcid);
|
||||
exit(EX_PROVIDER_ERROR);
|
||||
/* This could happen as a race if we've accepted but they've just rejected us,
|
||||
* so don't die here. --Elizafox */
|
||||
return;
|
||||
}
|
||||
|
||||
cancel_providers(auth);
|
||||
|
|
Loading…
Reference in a new issue