summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-08-31 00:52:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:03:15 -0500
commite89be1bf44d7a1d3c7b8104747e2a35511cc2bce (patch)
tree0845746af11f6113632fd362e11066198911e4a3 /source4
parent8d182d881d189e9855165b3a423f2d545a97fae8 (diff)
downloadsamba-e89be1bf44d7a1d3c7b8104747e2a35511cc2bce.tar.gz
samba-e89be1bf44d7a1d3c7b8104747e2a35511cc2bce.tar.bz2
samba-e89be1bf44d7a1d3c7b8104747e2a35511cc2bce.zip
r24817: Don't REG_NONE for all value types. Patch from
Andrew Kroeger <andrew@sprocks.gotdns.com> (This used to be commit ff81ea3f5aa8a93cf96914f03c26f8c86ec1e912)
Diffstat (limited to 'source4')
-rw-r--r--source4/rpc_server/winreg/rpc_winreg.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/rpc_server/winreg/rpc_winreg.c b/source4/rpc_server/winreg/rpc_winreg.c
index d2d8902641..d3d9977c12 100644
--- a/source4/rpc_server/winreg/rpc_winreg.c
+++ b/source4/rpc_server/winreg/rpc_winreg.c
@@ -408,7 +408,11 @@ static WERROR dcesrv_winreg_QueryValue(struct dcesrv_call_state *dce_call,
}
/* Just asking for the size of the buffer */
- r->out.type = &value_type;
+ r->out.type = talloc(mem_ctx, uint32_t);
+ if (!r->out.type) {
+ return WERR_NOMEM;
+ }
+ *r->out.type = value_type;
r->out.length = talloc(mem_ctx, uint32_t);
if (!r->out.length) {
return WERR_NOMEM;