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

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