Mercurial > dovecot > core-2.2
changeset 12827:b44ec48d9425
auth: Fixed ldap assert-crash.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 05 Mar 2011 13:36:19 +0200 |
parents | d757b13d84ff |
children | d1f30e375f40 |
files | src/auth/db-ldap.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/db-ldap.c Fri Mar 04 21:21:37 2011 +0200 +++ b/src/auth/db-ldap.c Sat Mar 05 13:36:19 2011 +0200 @@ -1174,12 +1174,12 @@ const char *p; while (ctx->attr != NULL) { - /* a new attribute */ - db_ldap_result_change_attr(ctx); - - if (ctx->vals != NULL) { - db_ldap_result_return_value(ctx); - return TRUE; + if (ctx->vals == NULL) { + db_ldap_result_change_attr(ctx); + if (ctx->vals != NULL) { + db_ldap_result_return_value(ctx); + return TRUE; + } } ldap_value_free(ctx->vals); ctx->vals = NULL;