git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ca739f
)
s3-winreg_nt: Fixed QueryValue with data=NULL to get the length. (cherry picked from...
author
Andreas Schneider
<asn@samba.org>
Fri, 16 Apr 2010 09:04:27 +0000
(11:04 +0200)
committer
Karolin Seeger
<kseeger@samba.org>
Fri, 18 Jun 2010 06:33:27 +0000
(08:33 +0200)
(cherry picked from commit
b541fb1500aad87aee46ef48036f3b4a05b119cd
)
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 840acba58f930d1fc0a4609ee1069f29091771c6..04c9c8ccfa7d830067c891dfa70ccb94104b6c58 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;
}