version 1.112, 2005/08/20 17:54:56
|
version 1.113, 2005/08/22 07:41:36
|
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.111 2005/08/09 22:54:38 hallvard Exp $ */ |
/* $OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.112 2005/08/20 17:54:56 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-2005 The OpenLDAP Foundation. |
* Copyright 1998-2005 The OpenLDAP Foundation. |
Line 660 nextresp2:
|
Line 660 nextresp2:
|
} else { |
} else { |
lr->lr_res_error = lr_res_error; |
lr->lr_res_error = lr_res_error; |
} |
} |
|
lr_res_error = NULL; |
} |
} |
|
|
if ( lderr != LDAP_SUCCESS ) { |
switch ( lderr ) { |
|
case LDAP_SUCCESS: |
|
case LDAP_COMPARE_TRUE: |
|
case LDAP_COMPARE_FALSE: |
|
break; |
|
|
|
default: |
|
if ( lr->lr_res_error == NULL |
|
|| lr->lr_res_error[ 0 ] == '\0' ) |
|
{ |
|
break; |
|
} |
|
|
/* referrals are in error string */ |
/* referrals are in error string */ |
refer_cnt = ldap_chase_referrals( ld, lr, |
refer_cnt = ldap_chase_referrals( ld, lr, |
&lr->lr_res_error, -1, &hadref ); |
&lr->lr_res_error, -1, &hadref ); |
lr->lr_status = LDAP_REQST_COMPLETED; |
lr->lr_status = LDAP_REQST_COMPLETED; |
Debug( LDAP_DEBUG_TRACE, |
Debug( LDAP_DEBUG_TRACE, |
"read1msg: V2 referral chased, mark request completed, id = %d\n", lr->lr_msgid, 0, 0); |
"read1msg: V2 referral chased, " |
|
"mark request completed, id = %d\n", |
|
lr->lr_msgid, 0, 0 ); |
|
break; |
} |
} |
|
|
/* save errno, message, and matched string */ |
/* save errno, message, and matched string */ |