git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40e2c04
)
s3-winreg: make QueryValue pass RPC-WINREG test again.
author
Günther Deschner
<gd@samba.org>
Thu, 11 Mar 2010 19:48:24 +0000
(20:48 +0100)
committer
Günther Deschner
<gd@samba.org>
Thu, 11 Mar 2010 19:48:24 +0000
(20:48 +0100)
Guenther
source3/rpc_server/srv_winreg_nt.c
patch
|
blob
|
history
diff --git
a/source3/rpc_server/srv_winreg_nt.c
b/source3/rpc_server/srv_winreg_nt.c
index 692c83cb6918272fdf796589bd8b2e7c3527f99c..2a2ff68f40fc6a40a5e6f3562d7029bb637b58ce 100644
(file)
--- a/
source3/rpc_server/srv_winreg_nt.c
+++ b/
source3/rpc_server/srv_winreg_nt.c
@@
-230,6
+230,10
@@
WERROR _winreg_QueryValue(pipes_struct *p, struct winreg_QueryValue *r)
if ( !regkey )
return WERR_BADFID;
+ if (r->in.value_name->name == NULL) {
+ return WERR_INVALID_PARAM;
+ }
+
if ((r->out.data_length == NULL) || (r->out.type == NULL) || (r->out.data_size == NULL)) {
return WERR_INVALID_PARAM;
}