Commit 5303e377 authored by valenok's avatar valenok

Allow NULL passwords in mg_modify_passwords_file

parent ff28c04b
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment