summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Nagy <mnagy@redhat.com>2009-09-04 14:38:29 +0200
committerMartin Nagy <mnagy@redhat.com>2009-09-04 14:38:29 +0200
commit67ba0e7ee99366673fa70e0e02cd63abea635b7d (patch)
treea59bd055b72a994eebb6c19b558a3681b8c5bd9b /src
parent0257e00561658908365a58da5acd8051f057b747 (diff)
downloadldap_driver-67ba0e7ee99366673fa70e0e02cd63abea635b7d.tar.gz
ldap_driver-67ba0e7ee99366673fa70e0e02cd63abea635b7d.tar.xz
ldap_driver-67ba0e7ee99366673fa70e0e02cd63abea635b7d.zip
Fix a typo in previous commit
Diffstat (limited to 'src')
-rw-r--r--src/ldap_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldap_helper.c b/src/ldap_helper.c
index 112c763..5c75426 100644
--- a/src/ldap_helper.c
+++ b/src/ldap_helper.c
@@ -1647,7 +1647,7 @@ handle_connection_error(ldap_connection_t *ldap_conn, isc_result_t *result)
*result = ISC_R_SUCCESS;
ldap_conn->tries = 0;
return 0;
- } else if (err_code == LDAP_SERVER_DOWN || LDAP_CONNECT_ERROR) {
+ } else if (err_code == LDAP_SERVER_DOWN || err_code == LDAP_CONNECT_ERROR) {
if (ldap_conn->tries == 0)
log_error("connection to the LDAP server was lost");
if (ldap_connect(ldap_conn) == ISC_R_SUCCESS)