git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eef1843
)
s3-winreg_nt: Fixed QueryValue with data=NULL to get the length.
author
Andreas Schneider
<asn@samba.org>
Fri, 16 Apr 2010 09:04:27 +0000
(11:04 +0200)
committer
Andreas Schneider
<asn@samba.org>
Fri, 16 Apr 2010 13:17:59 +0000
(15:17 +0200)
source3/rpc_server/srv_winreg_nt.c
patch
|
blob
|
history
diff --git
a/source3/rpc_server/srv_winreg_nt.c
b/source3/rpc_server/srv_winreg_nt.c
index 051930110e835e76e191e9071b123d0d82b35ffa..e64118b744621e5cb39a62c76513adc4b20b32c0 100644
(file)
--- 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;
}