diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2011-04-22 10:02:14 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2011-04-22 10:02:14 +0000 |
commit | bd7e126db21c1c6cc7f123205e521049ba36bbfb (patch) | |
tree | 5057fb5c2735e7ea7c51e460d1c5473df226253f | |
parent | 57d1f93259a526ef21c4e7ba94ee5dacccccee93 (diff) |
report correct reported error from ldap_abandon()
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1431 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r-- | nslcd/myldap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nslcd/myldap.c b/nslcd/myldap.c index 4742406..20e1083 100644 --- a/nslcd/myldap.c +++ b/nslcd/myldap.c @@ -582,7 +582,7 @@ static void do_close(MYLDAP_SESSION *session) log_log(LOG_DEBUG,"ldap_abandon()"); if (ldap_abandon(session->searches[i]->session->ld,session->searches[i]->msgid)) { - if (ldap_get_option(session->ld,LDAP_OPT_ERROR_NUMBER,&rc)==LDAP_SUCCESS) + if (ldap_get_option(session->ld,LDAP_OPT_ERROR_NUMBER,&rc)!=LDAP_SUCCESS) rc=LDAP_OTHER; log_log(LOG_WARNING,"ldap_abandon() failed to abandon search: %s",ldap_err2string(rc)); } |