dovecot-2.1: auth: Fixed vpopmail to work again after recent cha...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Dec 2 23:47:12 EET 2011
details: http://hg.dovecot.org/dovecot-2.1/rev/c067025026ed
changeset: 13796:c067025026ed
user: Timo Sirainen <tss at iki.fi>
date: Fri Dec 02 23:47:01 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 092d55003a7b -r c067025026ed src/auth/passdb-vpopmail.c
--- a/src/auth/passdb-vpopmail.c Fri Dec 02 17:59:24 2011 +0200
+++ b/src/auth/passdb-vpopmail.c Fri Dec 02 23:47:01 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