]> git.sur5r.net Git - openldap/commitdiff
don't risk leaving around client library error codes; try to return additional inform...
authorQuanah Gibson-Mount <quanah@openldap.org>
Mon, 13 Dec 2010 23:32:16 +0000 (23:32 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 13 Dec 2010 23:32:16 +0000 (23:32 +0000)
servers/slapd/back-meta/search.c

index f54a6ac77c7c8f402a4eb99cc714a6f5346a957a..b0594605f7db97ad0fd72c0e940c6fbcc0a3be22 100644 (file)
@@ -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;