From: Aki Tuomi Date: Sun, 15 May 2016 14:25:17 +0000 (+0300) Subject: lib-ldap: Do not create new context and lose settings X-Git-Tag: 2.3.0.rc1~3761 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0edb839b5fa5c082628d00257670010b3ef6963f;p=thirdparty%2Fdovecot%2Fcore.git lib-ldap: Do not create new context and lose settings --- diff --git a/src/lib-ldap/ldap-connection.c b/src/lib-ldap/ldap-connection.c index e26ced40f7..35dd0d7c76 100644 --- a/src/lib-ldap/ldap-connection.c +++ b/src/lib-ldap/ldap-connection.c @@ -88,6 +88,9 @@ int ldap_connection_setup(struct ldap_connection *conn, const char **error_r) ldap_set_option(conn->conn, LDAP_OPT_REFERRALS, 0); + opt = 0; + ldap_set_option(conn->conn, LDAP_OPT_X_TLS_NEWCTX, &opt); + return 0; }