modules/m_sasl.c: prevent abort_sasl() sending 906 twice
This commit is contained in:
parent
11d111c3fa
commit
bfffef7436
1 changed files with 2 additions and 0 deletions
|
@ -131,6 +131,7 @@ m_authenticate(struct Client *client_p, struct Client *source_p,
|
||||||
if (!strcmp(parv[1], "*"))
|
if (!strcmp(parv[1], "*"))
|
||||||
{
|
{
|
||||||
sendto_one(source_p, form_str(ERR_SASLABORTED), me.name, EmptyString(source_p->name) ? "*" : source_p->name);
|
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;
|
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(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);
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue