amoralej / rpms / 389-ds-base

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

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

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