From 8fcd55bdc0354a0b82529286bc96271bf4c3ca27 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 4 Jan 2011 16:17:24 +0000 Subject: [PATCH] no need for next control --- servers/slapd/back-meta/search.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/servers/slapd/back-meta/search.c b/servers/slapd/back-meta/search.c index 2c958c7190..09e94a255e 100644 --- a/servers/slapd/back-meta/search.c +++ b/servers/slapd/back-meta/search.c @@ -622,13 +622,13 @@ meta_back_search_start( #ifdef SLAPD_META_CLIENT_PR save_ctrls = op->o_ctrls; { - LDAPControl *pr_c = NULL, **next_c = NULL; + LDAPControl *pr_c = NULL; int i = 0, nc = 0; if ( save_ctrls ) { for ( ; save_ctrls[i] != NULL; i++ ); nc = i; - pr_c = ldap_control_find( LDAP_CONTROL_PAGEDRESULTS, save_ctrls, &next_c ); + pr_c = ldap_control_find( LDAP_CONTROL_PAGEDRESULTS, save_ctrls, NULL ); } if ( pr_c != NULL ) nc--; @@ -1533,9 +1533,9 @@ really_bad:; case LDAP_SUCCESS: if ( ctrls != NULL && ctrls[0] != NULL ) { #ifdef SLAPD_META_CLIENT_PR - LDAPControl *pr_c, **next_c; + LDAPControl *pr_c; - pr_c = ldap_control_find( LDAP_CONTROL_PAGEDRESULTS, ctrls, &next_c ); + pr_c = ldap_control_find( LDAP_CONTROL_PAGEDRESULTS, ctrls, NULL ); if ( pr_c != NULL ) { BerElementBuffer berbuf; BerElement *ber = (BerElement *)&berbuf; -- 2.39.5