r25807: Close handle during winreg test.
authorGünther Deschner <gd@samba.org>
Fri, 2 Nov 2007 13:18:07 +0000 (14:18 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Dec 2007 04:44:07 +0000 (05:44 +0100)
Guenther
(This used to be commit ca53f1fb5d7be9de92b9c573da477be599904843)

source4/torture/rpc/winreg.c

index 733d7f29582b91c8309d256fc698feeef1b06768..f6433f8ed598bb6e1b49b4a19aca246e48ee1429 100644 (file)
@@ -713,6 +713,10 @@ static bool test_Open(struct torture_context *tctx, struct dcerpc_pipe *p,
                torture_fail(tctx,
                             "CreateKey failed (OpenKey after Create didn't work)\n");
 
+       if (created && !test_CloseKey(p, tctx, &newhandle))
+               torture_fail(tctx,
+                            "CreateKey failed (CloseKey after Open didn't work)\n");
+
        if (created && !test_DeleteKey(p, tctx, &handle, TEST_KEY1)) {
                torture_comment(tctx, "DeleteKey failed\n");
                ret = false;