Skip to content

Commit

Permalink
lib-ldap: Use ldap_unbind_ext() instead of ldap_destroy()
Browse files Browse the repository at this point in the history
This allows it to compile with older LDAP libraries. Their behavior (at least
in OpenLDAP) is identical as long as LDAP_OPT_CLIENT_CONTROLS haven't been
changed, which we haven't.
  • Loading branch information
sirainen committed May 23, 2016
1 parent 7e35289 commit e181e75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-ldap/ldap-connection.c
Expand Up @@ -572,7 +572,7 @@ void ldap_connection_kill(struct ldap_connection *conn)
}
}
if (conn->conn != NULL) {
ldap_destroy(conn->conn);
ldap_unbind_ext(conn->conn, NULL, NULL);
ldap_memfree(conn->scred);
}
conn->conn = NULL;
Expand Down

0 comments on commit e181e75

Please sign in to comment.