s4/test-libnet: Refactor test_group_create() a little to: - 222 vampire-test-wip
authorKamen Mazdrashki <kamenim@samba.org>
Fri, 11 Jun 2010 13:20:41 +0000 (16:20 +0300)
committerKamen Mazdrashki <kamenim@samba.org>
Fri, 11 Jun 2010 13:20:41 +0000 (16:20 +0300)
source4/torture/libnet/utils.c

index 1364fc86aa1782afbd9be8590a6b865fee9c1d0f..dcf284bb98e795421097a868d5a11d9b10f3ddd7 100644 (file)
@@ -415,7 +415,7 @@ bool test_group_create(struct torture_context *tctx,
                                                   "CreateGroup failed");
 
                        /* be nice and close opened handles */
-                       test_samr_close_handle(tctx, b, mem_ctx, &user_handle);
+                       test_samr_close_handle(tctx, b, mem_ctx, &group_handle);
 
                        return true;
                }
@@ -423,7 +423,7 @@ bool test_group_create(struct torture_context *tctx,
        }
 
        /* be nice and close opened handles */
-       test_samr_close_handle(tctx, b, mem_ctx, &user_handle);
+       test_samr_close_handle(tctx, b, mem_ctx, &group_handle);
 
        return true;
 }