From 6d8a8851dffa00877c830da04b6f78b86e9d0ba5 Mon Sep 17 00:00:00 2001 From: Aaron Jones Date: Fri, 6 Apr 2018 20:06:43 +0000 Subject: [PATCH] modules/m_sasl.c: prevent abort_sasl() sending 906 twice --- modules/m_sasl.c | 2 ++ 1 file changed, 2 insertions(+) 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; }