Lines 1-22
Link Here
|
1 |
diff -r a8c2e04307c6 src/auth/passdb-vpopmail.c |
|
|
2 |
--- src/auth/passdb-vpopmail.c Wed Nov 23 19:04:15 2011 +0200 |
3 |
+++ src/auth/passdb-vpopmail.c Fri Dec 02 23:39:55 2011 +0200 |
4 |
@@ -75,7 +75,8 @@ |
5 |
password = NULL; |
6 |
*result_r = PASSDB_RESULT_USER_DISABLED; |
7 |
} else { |
8 |
- if (vpw->pw_clear_passwd != NULL) { |
9 |
+ if (vpw->pw_clear_passwd != NULL && |
10 |
+ *vpw->pw_clear_passwd != '\0') { |
11 |
password = t_strdup_noconst(vpw->pw_clear_passwd); |
12 |
*cleartext = TRUE; |
13 |
} else if (!*cleartext) |
14 |
@@ -120,7 +121,7 @@ |
15 |
enum passdb_result result; |
16 |
const char *scheme, *tmp_pass; |
17 |
char *crypted_pass; |
18 |
- bool cleartext; |
19 |
+ bool cleartext = FALSE; |
20 |
int ret; |
21 |
|
22 |
crypted_pass = vpopmail_password_lookup(request, &cleartext, &result); |