mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-03 13:28:44 +00:00
Allow NULL passwords in mg_modify_passwords_file
This commit is contained in:
1 parent
ff28c04b60
commit
5303e37702
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user