version 1.98, 2004/10/18 02:58:36
|
version 1.99, 2004/11/28 21:17:52
|
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.97 2004/10/09 04:13:47 kurt Exp $ */ |
/* $OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.98 2004/10/18 02:58:36 jongchoi 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-2004 The OpenLDAP Foundation. |
* Copyright 1998-2004 The OpenLDAP Foundation. |
Line 671 Debug( LDAP_DEBUG_TRACE,
|
Line 671 Debug( LDAP_DEBUG_TRACE,
|
/* Check if all requests are finished, lr is now parent */ |
/* Check if all requests are finished, lr is now parent */ |
tmplr = lr; |
tmplr = lr; |
if (tmplr->lr_status == LDAP_REQST_COMPLETED) { |
if (tmplr->lr_status == LDAP_REQST_COMPLETED) { |
for(tmplr=lr->lr_child; tmplr != NULL; tmplr=tmplr->lr_refnext) { |
for ( tmplr=lr->lr_child; |
if( tmplr->lr_status != LDAP_REQST_COMPLETED) { |
tmplr != NULL; |
break; |
tmplr=tmplr->lr_refnext) |
} |
{ |
|
if( tmplr->lr_status != LDAP_REQST_COMPLETED) break; |
} |
} |
} |
} |
|
|
/* This is the parent request if the request has referrals */ |
/* This is the parent request if the request has referrals */ |
if ( lr->lr_outrefcnt <= 0 && lr->lr_parent == NULL && tmplr == NULL ) { |
if ( lr->lr_outrefcnt <= 0 && lr->lr_parent == NULL && |
|
tmplr == NULL ) |
|
{ |
id = lr->lr_msgid; |
id = lr->lr_msgid; |
tag = lr->lr_res_msgtype; |
tag = lr->lr_res_msgtype; |
Debug( LDAP_DEBUG_ANY, "request %ld done\n", |
Debug( LDAP_DEBUG_ANY, "request %ld done\n", |