summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-03-11 20:24:58 +0100
committerGünther Deschner <gd@samba.org>2010-03-11 20:42:49 +0100
commit2324b07726adb2d45ee7e4571c3b83ba33cec3cf (patch)
treeb896a469eb133c54b4e7c877d490de4072380e3f
parente0d85f87b7a6a3c887bc0a7f93b26380369e269c (diff)
downloadsamba-2324b07726adb2d45ee7e4571c3b83ba33cec3cf.tar.gz
samba-2324b07726adb2d45ee7e4571c3b83ba33cec3cf.tar.bz2
samba-2324b07726adb2d45ee7e4571c3b83ba33cec3cf.zip
s4-smbtorture: test NULL and "" valuenames as well in query for wellknown winreg key.
Guenther
-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");
}