diff options
author | Günther Deschner <gd@samba.org> | 2010-03-11 20:48:24 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-03-11 20:48:24 +0100 |
commit | 24a7f8f2dbae73e862b9b3d4c6f0692054c354b3 (patch) | |
tree | 1d7ed9d2de36a7e9a8ca9cdb78d2b41252e3f140 /source3 | |
parent | 40e2c04f8aba605e951810751222559ea0d32ebd (diff) | |
download | samba-24a7f8f2dbae73e862b9b3d4c6f0692054c354b3.tar.gz samba-24a7f8f2dbae73e862b9b3d4c6f0692054c354b3.tar.bz2 samba-24a7f8f2dbae73e862b9b3d4c6f0692054c354b3.zip |
s3-winreg: make QueryValue pass RPC-WINREG test again.
Guenther
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/srv_winreg_nt.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_winreg_nt.c b/source3/rpc_server/srv_winreg_nt.c index 692c83cb69..2a2ff68f40 100644 --- 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; } |