From: Pierangelo Masarati Date: Wed, 16 Nov 2005 14:20:45 +0000 (+0000) Subject: refine previous commit... X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dd2afd3e3e03ed985fef2e89d08111b93fd0bc62;p=openldap refine previous commit... --- 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 ) ) {