Prechádzať zdrojové kódy

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 rokov pred
rodič
commit
314e9ecf31
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  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) {
     /* 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;
 }