lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1431 - nss-pam-ldapd/nslcd

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r1431 - nss-pam-ldapd/nslcd



Author: arthur
Date: Fri Apr 22 12:02:14 2011
New Revision: 1431
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1431

Log:
report correct reported error from ldap_abandon()

Modified:
   nss-pam-ldapd/nslcd/myldap.c

Modified: nss-pam-ldapd/nslcd/myldap.c
==============================================================================
--- nss-pam-ldapd/nslcd/myldap.c        Mon Apr 18 23:30:05 2011        (r1430)
+++ nss-pam-ldapd/nslcd/myldap.c        Fri Apr 22 12:02:14 2011        (r1431)
@@ -582,7 +582,7 @@
           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));
           }
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits