Author: jerry
Date: 2006-09-26 22:03:52 +0000 (Tue, 26 Sep 2006)
New Revision: 18932

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

Log:
In RegEnumvalue() and RegQueryValue(), the output buffer 
size must match the real value of the data.


Modified:
   branches/SAMBA_3_0/source/rpc_server/srv_winreg_nt.c


Changeset:
Modified: branches/SAMBA_3_0/source/rpc_server/srv_winreg_nt.c
===================================================================
--- branches/SAMBA_3_0/source/rpc_server/srv_winreg_nt.c        2006-09-26 
21:01:57 UTC (rev 18931)
+++ branches/SAMBA_3_0/source/rpc_server/srv_winreg_nt.c        2006-09-26 
22:03:52 UTC (rev 18932)
@@ -479,6 +479,8 @@
                        memcpy( data, regval_data_p(val), *value_length );
                        status = WERR_OK;
                }
+
+               *data_size = *value_length;
        }
 
        TALLOC_FREE( regvals );
@@ -626,6 +628,8 @@
                status = WERR_OK;
        }
 
+       *data_size = *value_length;
+
 done:  
        free_registry_value( val );
        

Reply via email to