modules/m_sasl.c: prevent abort_sasl() sending 906 twice

This commit is contained in:
Aaron Jones 2018-04-06 20:06:43 +00:00
parent 631c30890c
commit 6d8a8851df
No known key found for this signature in database
GPG key ID: 8AF0737488AB3012

View file

@ -183,6 +183,7 @@ m_authenticate(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *
if (!strcmp(parv[1], "*"))
{
sendto_one(source_p, form_str(ERR_SASLABORTED), me.name, EmptyString(source_p->name) ? "*" : source_p->name);
source_p->localClient->sasl_out = 0;
return;
}
@ -208,6 +209,7 @@ m_authenticate(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *
{
sendto_one(source_p, form_str(ERR_SASLABORTED), me.name, EmptyString(source_p->name) ? "*" : source_p->name);
sendto_one(agent_p, ":%s ENCAP %s SASL %s %s D A", me.id, agent_p->servptr->name, source_p->id, agent_p->id);
source_p->localClient->sasl_out = 0;
return;
}