summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/winreg.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-11-02 14:18:07 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:44:07 +0100
commit36b10da94a48e13077890bfaf7faba8e5cd27cee (patch)
tree79e7611548d0fd185d673a8be043817d31cbdad8 /source4/torture/rpc/winreg.c
parentecbc2cdd7a2b742515046fa0cdbccec0f4be9a2a (diff)
downloadsamba-36b10da94a48e13077890bfaf7faba8e5cd27cee.tar.gz
samba-36b10da94a48e13077890bfaf7faba8e5cd27cee.tar.bz2
samba-36b10da94a48e13077890bfaf7faba8e5cd27cee.zip
r25807: Close handle during winreg test.
Guenther (This used to be commit ca53f1fb5d7be9de92b9c573da477be599904843)
Diffstat (limited to 'source4/torture/rpc/winreg.c')
-rw-r--r--source4/torture/rpc/winreg.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c
index 733d7f2958..f6433f8ed5 100644
--- a/source4/torture/rpc/winreg.c
+++ b/source4/torture/rpc/winreg.c
@@ -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;