dovecot-1.1: Static attributes were broken in user_attrs.

dovecot at dovecot.org dovecot at dovecot.org
Fri Apr 25 03:23:53 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/6c6af734f284
changeset: 7465:6c6af734f284
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Apr 25 03:23:49 2008 +0300
description:
Static attributes were broken in user_attrs.

diffstat:

1 file changed, 3 insertions(+)
src/auth/db-ldap.c |    3 +++

diffs (13 lines):

diff -r 4dc5542f58aa -r 6c6af734f284 src/auth/db-ldap.c
--- a/src/auth/db-ldap.c	Fri Apr 25 02:10:36 2008 +0300
+++ b/src/auth/db-ldap.c	Fri Apr 25 03:23:49 2008 +0300
@@ -1103,6 +1103,9 @@ static bool db_ldap_result_int_next(stru
 			ctx->name = t_strdup_until(*ctx->static_attrs, p);
 			ctx->value = p + 1;
 		}
+		/* make _next_all() return correct values */
+		ctx->template = "";
+		ctx->val_1_arr[0] = ctx->value;
 		ctx->static_attrs++;
 		return TRUE;
 	}


More information about the dovecot-cvs mailing list