Removed the whole configlen thing. Seriously, WTF?
[citadel.git] / citadel / user_ops.c
index 6cce2a15bdf7c8bff110a0d75d794b25a2695aa5..a8004ed0f6070a3e3febd79476195c4aa03bfc00 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 ((configlen.c_master_user > 0) && 
-           (configlen.c_master_pass > 0) &&
-           (authname != NULL) &&
-           (!strcasecmp(authname, config.c_master_user)))
+       if (    (strlen(config.c_master_user) > 0) && 
+               (strlen(config.c_master_pass) > 0) &&
+               (authname != NULL) &&
+               (!strcasecmp(authname, config.c_master_user)) )
        {
                CC->is_master = 1;
        }