Diff for /libraries/libldap/result.c between versions 1.137 and 1.138

version 1.137, 2006/10/28 14:19:08 version 1.138, 2006/11/12 13:22:25
Line 1 Line 1
 /* result.c - wait for an ldap result */  /* result.c - wait for an ldap result */
 /* $OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.136 2006/10/27 17:37:04 kurt Exp $ */  /* $OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.137 2006/10/28 14:19:08 ando Exp $ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.  /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *   *
  * Copyright 1998-2006 The OpenLDAP Foundation.   * Copyright 1998-2006 The OpenLDAP Foundation.
Line 1087  build_result_ber( LDAP *ld, BerElement * Line 1087  build_result_ber( LDAP *ld, BerElement *
 }  }
   
   
 static void  
 merge_error_info( LDAP *ld, LDAPRequest *parentr, LDAPRequest *lr )  
 {  
 /*  /*
  * Merge error information in "lr" with "parentr" error code and string.   * Merge error information in "lr" with "parentr" error code and string.
  */   */
   static void
   merge_error_info( LDAP *ld, LDAPRequest *parentr, LDAPRequest *lr )
   {
         if ( lr->lr_res_errno == LDAP_PARTIAL_RESULTS ) {          if ( lr->lr_res_errno == LDAP_PARTIAL_RESULTS ) {
                 parentr->lr_res_errno = lr->lr_res_errno;                  parentr->lr_res_errno = lr->lr_res_errno;
                 if ( lr->lr_res_error != NULL ) {                  if ( lr->lr_res_error != NULL ) {
                         (void)ldap_append_referral( ld, &parentr->lr_res_error,                          (void)ldap_append_referral( ld, &parentr->lr_res_error,
                             lr->lr_res_error );                              lr->lr_res_error );
                 }                  }
   
         } else if ( lr->lr_res_errno != LDAP_SUCCESS &&          } else if ( lr->lr_res_errno != LDAP_SUCCESS &&
                 parentr->lr_res_errno == LDAP_SUCCESS )                  parentr->lr_res_errno == LDAP_SUCCESS )
         {          {
Line 1118  merge_error_info( LDAP *ld, LDAPRequest Line 1119  merge_error_info( LDAP *ld, LDAPRequest
         }          }
   
         Debug( LDAP_DEBUG_TRACE, "merged parent (id %d) error info:  ",          Debug( LDAP_DEBUG_TRACE, "merged parent (id %d) error info:  ",
             parentr->lr_msgid, 0, 0 );                  parentr->lr_msgid, 0, 0 );
         Debug( LDAP_DEBUG_TRACE, "result errno %d, error <%s>, matched <%s>\n",          Debug( LDAP_DEBUG_TRACE, "result errno %d, error <%s>, matched <%s>\n",
             parentr->lr_res_errno, parentr->lr_res_error ?                  parentr->lr_res_errno,
             parentr->lr_res_error : "", parentr->lr_res_matched ?                  parentr->lr_res_error ?  parentr->lr_res_error : "",
             parentr->lr_res_matched : "" );                  parentr->lr_res_matched ?  parentr->lr_res_matched : "" );
 }  }
   
   

Removed from v.1.137  
changed lines
  Added in v.1.138


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org