andykimpe / rpms / 389-ds-base

Forked from rpms/389-ds-base 5 months ago
Clone

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

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