[SCM] Samba Shared Repository - branch master updated

Andreas Schneider asn at samba.org
Fri Apr 16 07:18:26 MDT 2010


The branch, master has been updated
       via  4567bf9... s3-winreg_nt: Fixed QueryValue with data=NULL to get the length.
      from  eef1843... s4:Replaced dsdb_get_dom_sid_from_ldb_message() with samdb_result_dom_sid()

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 4567bf9df53e62c0f30279235d56d13cb38de190
Author: Andreas Schneider <asn at samba.org>
Date:   Fri Apr 16 11:04:27 2010 +0200

    s3-winreg_nt: Fixed QueryValue with data=NULL to get the length.

-----------------------------------------------------------------------

Summary of changes:
 source3/rpc_server/srv_winreg_nt.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/rpc_server/srv_winreg_nt.c b/source3/rpc_server/srv_winreg_nt.c
index 0519301..e64118b 100644
--- a/source3/rpc_server/srv_winreg_nt.c
+++ b/source3/rpc_server/srv_winreg_nt.c
@@ -320,7 +320,9 @@ WERROR _winreg_QueryValue(pipes_struct *p, struct winreg_QueryValue *r)
 	} else {
 		*r->out.data_length = outbuf_size;
 		*r->out.data_size = outbuf_size;
-		memcpy(r->out.data, outbuf, outbuf_size);
+		if (r->out.data) {
+			memcpy(r->out.data, outbuf, outbuf_size);
+		}
 		status = WERR_OK;
 	}
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list