Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fix AUTHENTICATE bug
  • Loading branch information
syzop committed Sep 3, 2016
1 parent ae0fc98 commit f473e35
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/modules/m_sasl.c
Expand Up @@ -230,6 +230,12 @@ CMD_FUNC(m_authenticate)
return 0;
}

if ((parv[1][0] == ':') || strchr(parv[1], ' '))
{
sendto_one(sptr, err_str(ERR_CANNOTDOCOMMAND), me.name, "*", "AUTHENTICATE", "Invalid parameter");
return 0;
}

if (strlen(parv[1]) > 400)
{
sendto_one(sptr, err_str(ERR_SASLTOOLONG), me.name, BadPtr(sptr->name) ? "*" : sptr->name);
Expand Down

0 comments on commit f473e35

Please sign in to comment.