r24817: Don't REG_NONE for all value types. Patch from
authorJelmer Vernooij <jelmer@samba.org>
Fri, 31 Aug 2007 00:52:47 +0000 (00:52 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 20:03:15 +0000 (15:03 -0500)
Andrew Kroeger <andrew@sprocks.gotdns.com>

source/rpc_server/winreg/rpc_winreg.c

index d2d8902641cfeb007bb4f8fadfe319063ce52427..d3d9977c124b55455b20cceb1880a20b22021c75 100644 (file)
@@ -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;