diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-11-27 07:52:46 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:16:09 -0500 |
commit | b148cde7f39859102288a87b6f0bd2b250947a85 (patch) | |
tree | afb540fa4756dd4361193935d739551aae826203 /source/libmsrpc | |
parent | a660993d140b860691c3ed0b71d3e8023e5a7c57 (diff) | |
download | samba-b148cde7f39859102288a87b6f0bd2b250947a85.tar.gz samba-b148cde7f39859102288a87b6f0bd2b250947a85.tar.xz samba-b148cde7f39859102288a87b6f0bd2b250947a85.zip |
r19914: The "default" value with the name "" need different 0-length treatment as the
other StringBufs, otherwise clicking on a key with this value being set leads
to regedit.exe on w2k3 chew all memory.
Diffstat (limited to 'source/libmsrpc')
-rw-r--r-- | source/libmsrpc/cac_winreg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libmsrpc/cac_winreg.c b/source/libmsrpc/cac_winreg.c index be7bc0a220e..a43febb0d61 100644 --- a/source/libmsrpc/cac_winreg.c +++ b/source/libmsrpc/cac_winreg.c @@ -841,7 +841,7 @@ int cac_RegEnumValues( CacServerHandle * hnd, TALLOC_CTX * mem_ctx, uint32 *pdata_size = &data_size; uint32 data_length = 0; uint32 *pdata_length = &data_length; - struct winreg_StringBuf name_buf; + struct winreg_ValNameBuf name_buf; enum winreg_Type *ptype = &types_out[num_values_out]; memset( name_buffer, 0x0, max_valnamelen ); |