Blame SOURCES/0005-Issue-49169-Fix-covscan-errors-regression.patch

61f723
From 6dde613c1a44731e017d262c2b5868dbe333da74 Mon Sep 17 00:00:00 2001
61f723
From: Mark Reynolds <mreynolds@redhat.com>
61f723
Date: Wed, 15 Mar 2017 09:00:19 -0400
61f723
Subject: [PATCH] Issue 49169 - Fix covscan errors(regression)
61f723
61f723
Description:  The change to vattr.c caused problems with the tests.
61f723
              Removing change.
61f723
61f723
https://pagure.io/389-ds-base/issue/49169
61f723
61f723
Reviewed by: one line commit rule
61f723
61f723
(cherry picked from commit 314e9ecf310d4ab8e8fc700bd5d3477d52e4fa19)
61f723
---
61f723
 ldap/servers/slapd/vattr.c | 4 ++--
61f723
 1 file changed, 2 insertions(+), 2 deletions(-)
61f723
61f723
diff --git a/ldap/servers/slapd/vattr.c b/ldap/servers/slapd/vattr.c
61f723
index 599b54e..ef4d7f2 100644
61f723
--- a/ldap/servers/slapd/vattr.c
61f723
+++ b/ldap/servers/slapd/vattr.c
61f723
@@ -754,9 +754,9 @@ slapi_vattr_values_get_sp(vattr_context *c,
61f723
   if (use_local_ctx) {
61f723
     /* slapi_pblock_destroy cleans up pb_vattr_context, as well */
61f723
 	slapi_pblock_destroy(local_pb);
61f723
-	ctx->pb = NULL;
61f723
+  } else {
61f723
+	vattr_context_ungrok(&c);
61f723
   }
61f723
-  vattr_context_ungrok(&ctx;;
61f723
   return rc;
61f723
 }
61f723
 
61f723
-- 
61f723
2.9.3
61f723