version 1.77, 2003/02/08 20:53:07
|
version 1.78, 2003/02/09 06:42:25
|
Line 1
|
Line 1
|
/* $OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.76 2003/02/03 16:28:19 jongchoi Exp $ */ |
/* $OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.77 2003/02/08 20:53:07 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 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: |