Diff for /libraries/libldap/result.c between versions 1.64.2.9 and 1.64.2.10

version 1.64.2.9, 2003/02/08 23:28:51 version 1.64.2.10, 2003/02/09 17:02:18
Line 1 Line 1
 /* $OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.64.2.8 2002/10/29 01:07:12 kurt Exp $ */  /* $OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.78 2003/02/09 06:42:25 kurt Exp $ */
 /*  /*
  * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.   * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file   * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
  */   */
 /*  Portions  /*  Portions
Line 811  lr->lr_res_matched ? lr->lr_res_matched Line 811  lr->lr_res_matched ? lr->lr_res_matched
         new->lm_msgtype = tag;          new->lm_msgtype = tag;
         new->lm_ber = ber;          new->lm_ber = ber;
   
 #ifndef LDAP_NOCACHE  
                 if ( ld->ld_cache != NULL ) {  
                         ldap_add_result_to_cache( ld, new );  
                 }  
 #endif /* LDAP_NOCACHE */  
   
         /* is this the one we're looking for? */          /* is this the one we're looking for? */
         if ( msgid == LDAP_RES_ANY || id == msgid ) {          if ( msgid == LDAP_RES_ANY || id == msgid ) {
Line 883  lr->lr_res_matched ? lr->lr_res_matched Line 878  lr->lr_res_matched ? lr->lr_res_matched
                         prev->lm_next = l->lm_next;                          prev->lm_next = l->lm_next;
                 *result = l;                  *result = l;
                 ld->ld_errno = LDAP_SUCCESS;                  ld->ld_errno = LDAP_SUCCESS;
 #ifdef LDAP_WORLD_P16  
                 /*  
                  * XXX questionable fix; see text for [P16] on  
                  * http://www.critical-angle.com/ldapworld/patch/  
                  *  
                  * inclusion of this patch causes searchs to hang on  
                  * multiple platforms  
                  */  
                 return( l->lm_msgtype );  
 #else   /* LDAP_WORLD_P16 */  
                 return( tag );                  return( tag );
 #endif  /* !LDAP_WORLD_P16 */  
         }          }
   
 leave:  leave:

Removed from v.1.64.2.9  
changed lines
  Added in v.1.64.2.10


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