From 314e9ecf310d4ab8e8fc700bd5d3477d52e4fa19 Mon Sep 17 00:00:00 2001 From: Mark Reynolds Date: Mar 15 2017 13:00:19 +0000 Subject: Issue 49169 - Fix covscan errors(regression) Description: The change to vattr.c caused problems with the tests. Removing change. https://pagure.io/389-ds-base/issue/49169 Reviewed by: one line commit rule --- diff --git a/ldap/servers/slapd/vattr.c b/ldap/servers/slapd/vattr.c index 599b54e..ef4d7f2 100644 --- a/ldap/servers/slapd/vattr.c +++ b/ldap/servers/slapd/vattr.c @@ -754,9 +754,9 @@ slapi_vattr_values_get_sp(vattr_context *c, if (use_local_ctx) { /* slapi_pblock_destroy cleans up pb_vattr_context, as well */ slapi_pblock_destroy(local_pb); - ctx->pb = NULL; + } else { + vattr_context_ungrok(&c); } - vattr_context_ungrok(&ctx); return rc; }