Allow NULL passwords in mg_modify_passwords_file

This commit is contained in:
valenok committed 2011-06-22 14:01:10 +01:00
1 parent ff28c04b60
commit 5303e37702
1 file changed
+1 -1
+1 -1
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;
}