m_sasl: Don't process authentication messages if SASL has been aborted

This commit is contained in:
Simon Arlott 2019-02-23 13:15:34 +00:00
parent 358a73c8d5
commit f44a0d7ea2
No known key found for this signature in database
GPG key ID: 49BFFEEFD4C3ED53

View file

@ -229,6 +229,10 @@ me_sasl(struct Client *client_p, struct Client *source_p,
if(!IsService(agent_p))
return 0;
/* If SASL has been aborted, do nothing. */
if (target_p->localClient->sasl_out != 0)
return 0;
/* Reject if someone has already answered. */
if(*target_p->localClient->sasl_agent && strncmp(parv[1], target_p->localClient->sasl_agent, IDLEN))
return 0;