diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ldap_helper.c | 2 |
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) |