Author: Alex Badea <vamposdecampos@gmail.com>
[ircu2.10.12-pk.git] / ircd / s_auth.c
index 15ccb1335b649a133a626301c9fcc12b8fcd9ee7..6dd7b2d709a9abd725f8bc9198262eff90ef9115 100644 (file)
@@ -322,7 +322,7 @@ static int auth_set_username(struct AuthRequest *auth)
     if (!lower && !upper)
       goto badid;
     /* Final character must not be punctuation. */
-    if (!IsAlnum(ch))
+    if (!IsAlnum(last))
       goto badid;
   }