From f44a0d7ea219371cf3e85c7efe80b06984795091 Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Sat, 23 Feb 2019 13:15:34 +0000 Subject: [PATCH] m_sasl: Don't process authentication messages if SASL has been aborted --- modules/m_sasl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/m_sasl.c b/modules/m_sasl.c index f302f1b6..c735580e 100644 --- a/modules/m_sasl.c +++ b/modules/m_sasl.c @@ -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;