]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-ldap: Support libldap without LDAP_OPT_X_TLS_NEWCTX.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 23 May 2016 10:08:20 +0000 (13:08 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 23 May 2016 10:08:20 +0000 (13:08 +0300)
src/lib-ldap/ldap-connection.c

index 1322c9341d4c2c9402e09bd46692f60a9b8072ff..be9f89b33ed5b9dfe219634ca71afacc0fedadcb 100644 (file)
@@ -88,8 +88,10 @@ int ldap_connection_setup(struct ldap_connection *conn, const char **error_r)
 
        ldap_set_option(conn->conn, LDAP_OPT_REFERRALS, 0);
 
+#ifdef LDAP_OPT_X_TLS_NEWCTX
        opt = 0;
        ldap_set_option(conn->conn, LDAP_OPT_X_TLS_NEWCTX, &opt);
+#endif
 
        return 0;
 }