diff --git a/modules/m_sasl.c b/modules/m_sasl.c index a3e5d111..69f7dee8 100644 --- a/modules/m_sasl.c +++ b/modules/m_sasl.c @@ -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; }