X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fuser_ops.c;h=7f84fa21eadb893c5bbd51cfe5bc6b8533616702;hb=0f0202036386f2ed2909fd5660d65fd5778e137d;hp=10fcb3f47d1fc605cf9e07674734e8354679bc52;hpb=5f71f867cba5865e2b359009c5dc60adbefc7762;p=citadel.git diff --git a/citadel/user_ops.c b/citadel/user_ops.c index 10fcb3f47..7f84fa21e 100644 --- a/citadel/user_ops.c +++ b/citadel/user_ops.c @@ -625,6 +625,11 @@ static int validpw(uid_t uid, const char *pass) { char buf[256]; + if (IsEmptyStr(pass)) { + lprintf(CTDL_DEBUG, "refusing to check empty password for uid=%d using chkpwd...\n", uid); + return 0; + } + lprintf(CTDL_DEBUG, "Validating password for uid=%d using chkpwd...\n", uid); begin_critical_section(S_CHKPWD);