[dovecot-cvs] dovecot/src/auth passdb-passwd-file.c,1.22,1.23
cras at dovecot.org
cras at dovecot.org
Sun Jan 1 19:04:31 EET 2006
Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv26985
Modified Files:
passdb-passwd-file.c
Log Message:
Don't crash if password is empty
Index: passdb-passwd-file.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/passdb-passwd-file.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- passdb-passwd-file.c 16 Oct 2005 14:06:59 -0000 1.22
+++ passdb-passwd-file.c 1 Jan 2006 17:04:29 -0000 1.23
@@ -39,7 +39,10 @@
if (scheme == NULL) scheme = _module->default_pass_scheme;
/* save the password so cache can use it */
- auth_request_set_field(request, "password", crypted_pass, scheme);
+ if (crypted_pass != NULL) {
+ auth_request_set_field(request, "password",
+ crypted_pass, scheme);
+ }
ret = password_verify(password, crypted_pass, scheme,
request->user);
More information about the dovecot-cvs
mailing list