]> code.citadel.org Git - citadel.git/blobdiff - citadel/user_ops.c
Add enums to hacking too.
[citadel.git] / citadel / user_ops.c
index a8004ed0f6070a3e3febd79476195c4aa03bfc00..6cce2a15bdf7c8bff110a0d75d794b25a2695aa5 100644 (file)
@@ -528,10 +528,10 @@ int CtdlLoginExistingUser(char *authname, const char *trythisname)
 
        /* If a "master user" is defined, handle its authentication if specified */
        CC->is_master = 0;
-       if (    (strlen(config.c_master_user) > 0) && 
-               (strlen(config.c_master_pass) > 0) &&
-               (authname != NULL) &&
-               (!strcasecmp(authname, config.c_master_user)) )
+       if ((configlen.c_master_user > 0) && 
+           (configlen.c_master_pass > 0) &&
+           (authname != NULL) &&
+           (!strcasecmp(authname, config.c_master_user)))
        {
                CC->is_master = 1;
        }