]> jfr.im git - irc/charybdis-ircd/charybdis.git/commitdiff
m_sasl: Don't process authentication messages if SASL has been aborted
authorSimon Arlott <sa.me.uk>
Sat, 23 Feb 2019 13:15:34 +0000 (13:15 +0000)
committerSimon Arlott <sa.me.uk>
Sat, 23 Feb 2019 13:19:13 +0000 (13:19 +0000)
modules/m_sasl.c

index f302f1b630d82c1fec9df80fd689c4beba8d1491..c735580e6df476ff19ccfa120728dd80dca67beb 100644 (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;