dovecot-2.0: auth: Fixed vpopmail to work again after recent cha...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Dec 2 23:46:16 EET 2011
details: http://hg.dovecot.org/dovecot-2.0/rev/42a7ba0adafe
changeset: 12993:42a7ba0adafe
user: Timo Sirainen <tss at iki.fi>
date: Fri Dec 02 23:45:55 2011 +0200
description:
auth: Fixed vpopmail to work again after recent change.
diffstat:
src/auth/passdb-vpopmail.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r a8c2e04307c6 -r 42a7ba0adafe src/auth/passdb-vpopmail.c
--- a/src/auth/passdb-vpopmail.c Wed Nov 23 19:04:15 2011 +0200
+++ b/src/auth/passdb-vpopmail.c Fri Dec 02 23:45:55 2011 +0200
@@ -75,7 +75,8 @@
password = NULL;
*result_r = PASSDB_RESULT_USER_DISABLED;
} else {
- if (vpw->pw_clear_passwd != NULL) {
+ if (vpw->pw_clear_passwd != NULL &&
+ *vpw->pw_clear_passwd != '\0') {
password = t_strdup_noconst(vpw->pw_clear_passwd);
*cleartext = TRUE;
} else if (!*cleartext)
@@ -120,7 +121,7 @@
enum passdb_result result;
const char *scheme, *tmp_pass;
char *crypted_pass;
- bool cleartext;
+ bool cleartext = FALSE;
int ret;
crypted_pass = vpopmail_password_lookup(request, &cleartext, &result);
More information about the dovecot-cvs
mailing list