Mercurial > dovecot > core-2.2
changeset 22436:7995b4ce78ab
lib-ldap: Store error if sending request to LDAP fails
If the request cannot be sent e.g. due to bad search filter
store the error into the result.
Fixes Panic: file ldap-connection.c: line 709 (ldap_result_has_failed): assertion failed: ((result->openldap_ret == LDAP_SUCCESS) == (result->error_string == NULL))
author | Aki Tuomi <aki.tuomi@dovecot.fi> |
---|---|
date | Thu, 20 Jul 2017 08:48:30 +0300 |
parents | 8020b3f6a4f8 |
children | d4b14f33b5b1 |
files | src/lib-ldap/ldap-connection.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-ldap/ldap-connection.c Wed Jul 26 19:42:48 2017 +0300 +++ b/src/lib-ldap/ldap-connection.c Thu Jul 20 08:48:30 2017 +0300 @@ -284,6 +284,7 @@ i_zero(&res); res.openldap_ret = ret; + res.error_string = error; if (req->result_callback != NULL) req->result_callback(&res, req->result_callback_ctx);