Allow NULL passwords in mg_modify_passwords_file

This commit is contained in:
valenok 2011-06-22 14:01:10 +01:00
parent ff28c04b60
commit 5303e37702

View File

@ -2247,7 +2247,7 @@ int mg_modify_passwords_file(const char *fname, const char *domain,
fp = fp2 = NULL;
// Regard empty password as no password - remove user record.
if (pass[0] == '\0') {
if (pass != NULL && pass[0] == '\0') {
pass = NULL;
}