Author: jelmer
Date: 2007-08-31 00:52:47 +0000 (Fri, 31 Aug 2007)
New Revision: 24817

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24817

Log:
Don't REG_NONE for all value types. Patch from 
Andrew Kroeger <[EMAIL PROTECTED]>

Modified:
   branches/SAMBA_4_0/
   branches/SAMBA_4_0/source/rpc_server/winreg/rpc_winreg.c


Changeset:

Property changes on: branches/SAMBA_4_0
___________________________________________________________________
Name: bzr:revision-info
...skipped...
Name: bzr:revision-id:v3-trunk0
...skipped...

Modified: branches/SAMBA_4_0/source/rpc_server/winreg/rpc_winreg.c
===================================================================
--- branches/SAMBA_4_0/source/rpc_server/winreg/rpc_winreg.c    2007-08-31 
00:31:32 UTC (rev 24816)
+++ branches/SAMBA_4_0/source/rpc_server/winreg/rpc_winreg.c    2007-08-31 
00:52:47 UTC (rev 24817)
@@ -408,7 +408,11 @@
        }
 
        /* 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;

Reply via email to