Skip to content

Commit

Permalink
Fix logic error (name_checker)
Browse files Browse the repository at this point in the history
  • Loading branch information
baytuch committed Nov 27, 2023
1 parent 2521c14 commit 42b0592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/auth.cpp
Expand Up @@ -64,7 +64,7 @@ bool name_checker(const std::string &name)
{
c = name[n];
if (!n && (c < 'A' || c > 'Z')) res = false;
else
if (n)
{
bool zero = false;
if (n >= len_name - len_zero)
Expand Down

0 comments on commit 42b0592

Please sign in to comment.