summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/torture/rpc/winreg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/torture/rpc/winreg.c b/source4/torture/rpc/winreg.c
index aab5dc3b69..eb71305b8d 100644
--- a/source4/torture/rpc/winreg.c
+++ b/source4/torture/rpc/winreg.c
@@ -2112,6 +2112,11 @@ static bool test_Open(struct torture_context *tctx, struct dcerpc_pipe *p,
"failed to query current version");
torture_assert(tctx, test_QueryValue_full(p, tctx, &newhandle, "IDoNotExist", false),
"failed to query current version");
+ torture_assert(tctx, test_QueryValue_full(p, tctx, &newhandle, NULL, false),
+ "test_QueryValue_full for NULL value failed");
+ torture_assert(tctx, test_QueryValue_full(p, tctx, &newhandle, "", false),
+ "test_QueryValue_full for \"\" value failed");
+
torture_assert(tctx, test_CloseKey(p, tctx, &newhandle),
"failed to close current version key");
}