From 3e2f62ed0bcedda752b7b0de2d4f4282c72e7b9d Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Sun, 12 Jun 2016 10:18:50 +0200 Subject: [PATCH] ITS#8442 Fix uninitialized rs->sr_text in back-meta --- servers/slapd/back-meta/search.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5