]> jfr.im git - irc/charybdis-ircd/charybdis.git/commitdiff
modules/m_sasl.c: prevent abort_sasl() sending 906 twice
authorAaron Jones <redacted>
Fri, 6 Apr 2018 20:05:48 +0000 (20:05 +0000)
committerAaron Jones <redacted>
Fri, 6 Apr 2018 20:05:48 +0000 (20:05 +0000)
modules/m_sasl.c

index fa8cc17ed309e09049922695e24426ff58b0b58d..f1b3f3dfd5c2e6f0c935d5b7ca5905ca201a2a54 100644 (file)
@@ -131,6 +131,7 @@ m_authenticate(struct Client *client_p, struct Client *source_p,
                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 0;
                }
 
@@ -156,6 +157,7 @@ m_authenticate(struct Client *client_p, struct Client *source_p,
                {
                        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 0;
                }