]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Bug 647: still allow password-less logins
authorLee Howard <faxguy@howardsilvan.com>
Fri, 29 Apr 2005 00:24:22 +0000 (00:24 +0000)
committerLee Howard <faxguy@howardsilvan.com>
Fri, 29 Apr 2005 00:24:22 +0000 (00:24 +0000)
hfaxd/User.c++

index 42a6447b62bdf9007fc5329eea84a27e2a3ab82e..6c927e63e17e849c4abd92b037709633c2819fd1 100644 (file)
@@ -58,7 +58,7 @@ HylaFAXServer::checkUser(const char* name)
        // We use checkuser() like this to avoid compiler quirks
        // that surface with or-ing them.
        if (checkuser(db, name)) check = true;
-       if (checkuser(name)) check = true;
+       if (!check && checkuser(name)) check = true;
        fclose(db);
     } else
        logError("Unable to open the user access file %s: %s",