浏览代码

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
Mark Reynolds 8 年之前
父节点
当前提交
314e9ecf31
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      ldap/servers/slapd/vattr.c

+ 2 - 2
ldap/servers/slapd/vattr.c

@@ -754,9 +754,9 @@ slapi_vattr_values_get_sp(vattr_context *c,
   if (use_local_ctx) {
   if (use_local_ctx) {
     /* slapi_pblock_destroy cleans up pb_vattr_context, as well */
     /* slapi_pblock_destroy cleans up pb_vattr_context, as well */
 	slapi_pblock_destroy(local_pb);
 	slapi_pblock_destroy(local_pb);
-	ctx->pb = NULL;
+  } else {
+	vattr_context_ungrok(&c);
   }
   }
-  vattr_context_ungrok(&ctx);
   return rc;
   return rc;
 }
 }