From: Pierangelo Masarati Date: Thu, 11 Aug 2011 10:16:01 +0000 (+0200) Subject: use ldap_search_ext(timelimit) instead of ldap_set_option(LDAP_OPT_TIMELIMIT) (relate... X-Git-Tag: OPENLDAP_REL_ENG_2_4_27~300 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=122e3a506e8908fff12b8f8c4ff11433047f51df;p=openldap use ldap_search_ext(timelimit) instead of ldap_set_option(LDAP_OPT_TIMELIMIT) (related to ITS#7009) --- diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index 271a1bec72..4eeca808b9 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -769,22 +769,6 @@ private_conn_setup( LDAP *ld ) fprintf( stderr, _("Could not set LDAP_OPT_DEREF %d\n"), deref ); exit( EXIT_FAILURE ); } - if (timelimit > 0 && - ldap_set_option( ld, LDAP_OPT_TIMELIMIT, (void *) &timelimit ) - != LDAP_OPT_SUCCESS ) - { - fprintf( stderr, - _("Could not set LDAP_OPT_TIMELIMIT %d\n"), timelimit ); - exit( EXIT_FAILURE ); - } - if (sizelimit > 0 && - ldap_set_option( ld, LDAP_OPT_SIZELIMIT, (void *) &sizelimit ) - != LDAP_OPT_SUCCESS ) - { - fprintf( stderr, - _("Could not set LDAP_OPT_SIZELIMIT %d\n"), sizelimit ); - exit( EXIT_FAILURE ); - } } int