]> git.sur5r.net Git - openldap/commitdiff
ITS#8442 Fix uninitialized rs->sr_text in back-meta
authorHallvard Furuseth <hallvard@openldap.org>
Sun, 12 Jun 2016 08:18:50 +0000 (10:18 +0200)
committerHallvard Furuseth <hallvard@openldap.org>
Sun, 12 Jun 2016 08:18:50 +0000 (10:18 +0200)
servers/slapd/back-meta/search.c

index fdf922667f8ee7800dc31de7508a2275399f5255..027e4c694d29afcf3c963b1826ebcc035b2d1856 100644 (file)
@@ -1648,8 +1648,9 @@ err_pr:;
                                                if ( rs->sr_nentries == op->ors_slimit
                                                        || META_BACK_ONERR_STOP( mi ) )
                                                {
-                                                       const char *save_text = rs->sr_text;
+                                                       const char *save_text;
 got_err:
+                                                       save_text = rs->sr_text;
                                                        savepriv = op->o_private;
                                                        op->o_private = (void *)i;
                                                        rs->sr_text = candidates[ i ].sr_text;