From dd2afd3e3e03ed985fef2e89d08111b93fd0bc62 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 16 Nov 2005 14:20:45 +0000 Subject: [PATCH] refine previous commit... --- servers/slapd/back-ldap/search.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servers/slapd/back-ldap/search.c b/servers/slapd/back-ldap/search.c index 5c824d0b0c..625f3b0550 100644 --- a/servers/slapd/back-ldap/search.c +++ b/servers/slapd/back-ldap/search.c @@ -155,7 +155,8 @@ ldap_back_search( int freetext = 0; int do_retry = 1; LDAPControl **ctrls = NULL; - char *save_matched = rs->sr_matched; + /* FIXME: shouldn't this be null? */ + const char *save_matched = rs->sr_matched; lc = ldap_back_getconn( op, rs, LDAP_BACK_SENDERR ); if ( !lc || !ldap_back_dobind( lc, op, rs, LDAP_BACK_SENDERR ) ) { -- 2.39.5