0157eb1 Ticket #48904 - syncrepl search returning error 329; plugin sending a bad error code

Authored and Committed by nhosoi 7 years ago
    Ticket #48904 - syncrepl search returning error 329; plugin sending a bad error code
    
    Description: Implemented based upon the analysis by lkrispen@redhat.com.
    > the problem is in the new function send_ldap_intermediate() introduced for
    > sync_repl, it calls log_result (....,rc, ) where rc is the return code of
    > ber_put_seq(). It should call log_result( ...,1, ) if rc==LBER_ERROR and
    > (...,0,..) else.
    
    Instead of using 1 and 0, use ldap code LDAP_OPERATIONS_ERROR and LDAP_SUCCESS,
    respectively.
    
    https://fedorahosted.org/389/ticket/48904
    
    Reviewed by wibrown@redhat.com (Thank you, William!!)
    
        
file modified
+7 -5