From: Pierangelo Masarati Date: Fri, 20 Feb 2009 01:07:00 +0000 (+0000) Subject: re-fix ITS#5916 X-Git-Tag: ACLCHECK_0~798 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ed97e969445ec47fe6cc69e5b0ef00adf42be2e2;p=openldap re-fix ITS#5916 --- diff --git a/libraries/libldap/search.c b/libraries/libldap/search.c index 7dfdbd16c3..5c4e234e72 100644 --- a/libraries/libldap/search.c +++ b/libraries/libldap/search.c @@ -315,7 +315,8 @@ ldap_build_search_req( #endif { err = ber_printf( ber, "{it{seeiib", *idp, - LDAP_REQ_SEARCH, base, (ber_int_t) scope, ld->ld_deref, + LDAP_REQ_SEARCH, base, (ber_int_t) scope, + (deref < 0) ? ld->ld_deref : deref, (sizelimit < 0) ? ld->ld_sizelimit : sizelimit, (timelimit < 0) ? ld->ld_timelimit : timelimit, attrsonly );