m_sasl: Don't process authentication messages if SASL has been aborted
This commit is contained in:
parent
a589946b42
commit
24b8fd0063
1 changed files with 4 additions and 0 deletions
|
@ -229,6 +229,10 @@ me_sasl(struct Client *client_p, struct Client *source_p,
|
||||||
if(!IsService(agent_p))
|
if(!IsService(agent_p))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
/* If SASL has been aborted, do nothing. */
|
||||||
|
if (target_p->localClient->sasl_out == 0)
|
||||||
|
return 0;
|
||||||
|
|
||||||
/* Reject if someone has already answered. */
|
/* Reject if someone has already answered. */
|
||||||
if(*target_p->localClient->sasl_agent && strncmp(parv[1], target_p->localClient->sasl_agent, IDLEN))
|
if(*target_p->localClient->sasl_agent && strncmp(parv[1], target_p->localClient->sasl_agent, IDLEN))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue