Diff for /libraries/libldap/result.c between versions 1.176 and 1.177

version 1.176, 2010/12/07 09:11:06 version 1.177, 2010/12/11 03:35:01
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.175 2010/11/24 13:47:46 ando Exp $ */  /* $OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.176 2010/12/07 09:11:06 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-2010 The OpenLDAP Foundation.   * Copyright 1998-2010 The OpenLDAP Foundation.
Line 807  nextresp2: Line 807  nextresp2:
                         }                          }
   
                 } else {                  } else {
                           LDAPRequest *lrf = lr;
                         if ( lr->lr_outrefcnt <= 0 && lr->lr_parent == NULL ) {                          if ( lr->lr_outrefcnt <= 0 && lr->lr_parent == NULL ) {
                                 /* request without any referrals */                                  /* request without any referrals */
                                 simple_request = ( hadref ? 0 : 1 );                                  simple_request = ( hadref ? 0 : 1 );
Line 829  nextresp2: Line 830  nextresp2:
                                         break;  /* not completely done yet */                                          break;  /* not completely done yet */
                                 }                                  }
                         }                          }
                           /* ITS#6744: Original lr was refcounted when we retrieved it,
                            * must release it now that we're working with the parent
                            */
                           if ( lrf != &dummy_lr ) {
                                   ldap_return_request( ld, lrf, 0 );
                           }
   
                         /* Check if all requests are finished, lr is now parent */                          /* Check if all requests are finished, lr is now parent */
                         tmplr = lr;                          tmplr = lr;

Removed from v.1.176  
changed lines
  Added in v.1.177


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