From: Hallvard Furuseth Date: Sun, 12 Jun 2016 08:18:50 +0000 (+0200) Subject: ITS#8442 Fix uninitialized rs->sr_text in back-meta X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3e2f62ed0bcedda752b7b0de2d4f4282c72e7b9d;p=openldap ITS#8442 Fix uninitialized rs->sr_text in back-meta --- diff --git a/servers/slapd/back-meta/search.c b/servers/slapd/back-meta/search.c index fdf922667f..027e4c694d 100644 --- a/servers/slapd/back-meta/search.c +++ b/servers/slapd/back-meta/search.c @@ -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;