/* send references in search results */
if( err == LDAP_REFERRAL ) {
err = LDAP_PARTIAL_RESULTS;
- tmp = text = v2ref( refs );
- refs = NULL;
}
+ tmp = text = v2ref( refs );
+ refs = NULL;
+
} else {
/* don't send references in search results */
+ assert( refs == NULL );
+ refs = NULL;
+
if( err == LDAP_REFERRAL ) {
err = LDAP_SUCCESS;
- refs = NULL;
}
}
BerElement *ber;
Attribute *a;
int i, rc=-1, bytes;
- struct acl *acl;
+ AccessControl *acl;
char *edn;
int allattrs;