git.samba.org
/
gd
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d182d8
)
r24817: Don't REG_NONE for all value types. Patch from
author
Jelmer Vernooij
<jelmer@samba.org>
Fri, 31 Aug 2007 00:52:47 +0000
(
00:52
+0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 20:03:15 +0000
(15:03 -0500)
Andrew Kroeger <andrew@sprocks.gotdns.com>
(This used to be commit
ff81ea3f5aa8a93cf96914f03c26f8c86ec1e912
)
source4/rpc_server/winreg/rpc_winreg.c
patch
|
blob
|
history
diff --git
a/source4/rpc_server/winreg/rpc_winreg.c
b/source4/rpc_server/winreg/rpc_winreg.c
index d2d8902641cfeb007bb4f8fadfe319063ce52427..d3d9977c124b55455b20cceb1880a20b22021c75 100644
(file)
--- 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;