Diff for /libraries/libldap/result.c between versions 1.84 and 1.84.2.2

version 1.84, 2003/02/28 12:41:53 version 1.84.2.2, 2003/09/18 15:43:32
Line 1 Line 1
 /* $OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.83 2003/02/28 11:57:28 hyc Exp $ */  /* $OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.84.2.1 2003/05/31 19:01:39 kurt Exp $ */
 /*  /*
  * Copyright 1998-2003 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
Line 31 Line 31
  * can be found in the file "build/LICENSE-2.0.1" in this distribution   * can be found in the file "build/LICENSE-2.0.1" in this distribution
  * of OpenLDAP Software.   * of OpenLDAP Software.
  */   */
   /*
    * Portions Copyright (C) The Internet Society (1997)
    * ASN.1 fragments are from RFC 2251; see RFC for full legal notices.
    */
   
 /*  /*
  * LDAPv3 (RFC2251)   * LDAPv3 (RFC2251)
Line 185  chkResponseList( Line 189  chkResponseList(
                         for ( tmp = lm; tmp != NULL; tmp = tmp->lm_chain ) {                          for ( tmp = lm; tmp != NULL; tmp = tmp->lm_chain ) {
                                 if ( tmp->lm_msgtype != LDAP_RES_SEARCH_ENTRY                                  if ( tmp->lm_msgtype != LDAP_RES_SEARCH_ENTRY
                                     && tmp->lm_msgtype != LDAP_RES_SEARCH_REFERENCE                                      && tmp->lm_msgtype != LDAP_RES_SEARCH_REFERENCE
                                         && tmp->lm_msgtype != LDAP_RES_EXTENDED_PARTIAL )                                          && tmp->lm_msgtype != LDAP_RES_INTERMEDIATE )
                                 {                                  {
                                         break;                                          break;
                                 }                                  }
Line 660  nextresp2: Line 664  nextresp2:
          * go through the following code.  This code also chases V2 referrals           * go through the following code.  This code also chases V2 referrals
          * and checks if all referrals have been chased.           * and checks if all referrals have been chased.
          */           */
         if ( (tag != LDAP_RES_SEARCH_ENTRY) && (v3ref > -1)          if ( (tag != LDAP_RES_SEARCH_ENTRY) && (v3ref > -1) &&
 #ifdef LDAP_RES_INTERMEDIATE_RESP                  (tag != LDAP_RES_INTERMEDIATE ))
                 && (tag != LDAP_RES_INTERMEDIATE_RESP )          {
 #endif  
         ) {  
                 /* For a v3 search referral/reference, only come here if already chased it */                  /* For a v3 search referral/reference, only come here if already chased it */
                 if ( ld->ld_version >= LDAP_VERSION2 &&                  if ( ld->ld_version >= LDAP_VERSION2 &&
                         ( lr->lr_parent != NULL ||                          ( lr->lr_parent != NULL ||
Line 957  lr->lr_res_matched ? lr->lr_res_matched Line 959  lr->lr_res_matched ? lr->lr_res_matched
         for ( tmp = l; (tmp->lm_chain != NULL) &&          for ( tmp = l; (tmp->lm_chain != NULL) &&
                 ((tmp->lm_chain->lm_msgtype == LDAP_RES_SEARCH_ENTRY) ||                  ((tmp->lm_chain->lm_msgtype == LDAP_RES_SEARCH_ENTRY) ||
                  (tmp->lm_chain->lm_msgtype == LDAP_RES_SEARCH_REFERENCE) ||                   (tmp->lm_chain->lm_msgtype == LDAP_RES_SEARCH_REFERENCE) ||
                          (tmp->lm_chain->lm_msgtype == LDAP_RES_EXTENDED_PARTIAL ));                           (tmp->lm_chain->lm_msgtype == LDAP_RES_INTERMEDIATE ));
             tmp = tmp->lm_chain )              tmp = tmp->lm_chain )
                 ;       /* NULL */                  ;       /* NULL */
         tmp->lm_chain = new;          tmp->lm_chain = new;
Line 1109  char * ldap_int_msgtype2str( ber_tag_t t Line 1111  char * ldap_int_msgtype2str( ber_tag_t t
         case LDAP_RES_COMPARE: return "compare";          case LDAP_RES_COMPARE: return "compare";
         case LDAP_RES_DELETE: return "delete";          case LDAP_RES_DELETE: return "delete";
         case LDAP_RES_EXTENDED: return "extended-result";          case LDAP_RES_EXTENDED: return "extended-result";
         case LDAP_RES_EXTENDED_PARTIAL: return "extended-partial";          case LDAP_RES_INTERMEDIATE: return "intermediate";
         case LDAP_RES_MODIFY: return "modify";          case LDAP_RES_MODIFY: return "modify";
         case LDAP_RES_RENAME: return "rename";          case LDAP_RES_RENAME: return "rename";
         case LDAP_RES_SEARCH_ENTRY: return "search-entry";          case LDAP_RES_SEARCH_ENTRY: return "search-entry";

Removed from v.1.84  
changed lines
  Added in v.1.84.2.2


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