--- libraries/libldap/result.c 2003/05/31 03:01:50 1.85 +++ libraries/libldap/result.c 2003/05/31 03:48:16 1.86 @@ -1,4 +1,4 @@ -/* $OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.84 2003/02/28 12:41:53 hyc Exp $ */ +/* $OpenLDAP: pkg/ldap/libraries/libldap/result.c,v 1.85 2003/05/31 03:01:50 kurt Exp $ */ /* * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file @@ -660,11 +660,9 @@ nextresp2: * go through the following code. This code also chases V2 referrals * and checks if all referrals have been chased. */ - if ( (tag != LDAP_RES_SEARCH_ENTRY) && (v3ref > -1) -#ifdef LDAP_RES_INTERMEDIATE_RESP - && (tag != LDAP_RES_INTERMEDIATE_RESP ) -#endif - ) { + if ( (tag != LDAP_RES_SEARCH_ENTRY) && (v3ref > -1) && + (tag != LDAP_RES_INTERMEDIATE )) + { /* For a v3 search referral/reference, only come here if already chased it */ if ( ld->ld_version >= LDAP_VERSION2 && ( lr->lr_parent != NULL ||