From: Quanah Gibson-Mount Date: Mon, 13 Dec 2010 23:32:16 +0000 (+0000) Subject: don't risk leaving around client library error codes; try to return additional inform... X-Git-Tag: OPENLDAP_REL_ENG_2_4_24~231 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6e8baae622d63e0939af267dcd2bc93ec043b64f;p=openldap don't risk leaving around client library error codes; try to return additional information --- diff --git a/servers/slapd/back-meta/search.c b/servers/slapd/back-meta/search.c index f54a6ac77c..b0594605f7 100644 --- a/servers/slapd/back-meta/search.c +++ b/servers/slapd/back-meta/search.c @@ -1451,7 +1451,7 @@ really_bad:; if ( rs->sr_nentries == op->ors_slimit || META_BACK_ONERR_STOP( mi ) ) { - const char *save_text = rs->sr_text; + char *save_text = rs->sr_text; savepriv = op->o_private; op->o_private = (void *)i; rs->sr_text = candidates[ i ].sr_text; @@ -1467,7 +1467,7 @@ really_bad:; default: candidates[ i ].sr_err = rs->sr_err; if ( META_BACK_ONERR_STOP( mi ) ) { - const char *save_text = rs->sr_text; + char *save_text = rs->sr_text; savepriv = op->o_private; op->o_private = (void *)i; rs->sr_text = candidates[ i ].sr_text;