X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fuser_ops.c;fp=citadel%2Fuser_ops.c;h=1e8792d71d6a0cb9681c9bad800650a4da28e427;hp=4ae077862c857a8e0ef58770a017bacc205de25b;hb=1a3138f7132003e097baa70dd1d9380fa65eadfe;hpb=11a53969428899d72b4ef7f37bfef47d81a710fa diff --git a/citadel/user_ops.c b/citadel/user_ops.c index 4ae077862..1e8792d71 100644 --- a/citadel/user_ops.c +++ b/citadel/user_ops.c @@ -529,8 +529,8 @@ int CtdlLoginExistingUser(char *authname, const char *trythisname) /* If a "master user" is defined, handle its authentication if specified */ CC->is_master = 0; - if ( (strlen(CtdlGetConfigStr("c_master_user")) > 0) && - (strlen(CtdlGetConfigStr("c_master_pass")) > 0) && + if ( (!IsEmptyStr(CtdlGetConfigStr("c_master_user"))) && + (!IsEmptyStr(CtdlGetConfigStr("c_master_pass"))) && (authname != NULL) && (!strcasecmp(authname, CtdlGetConfigStr("c_master_user"))) ) {