summaryrefslogtreecommitdiff
path: root/source3/librpc/gen_ndr/srv_ntsvcs.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-11-19 15:06:05 -0800
committerJeremy Allison <jra@samba.org>2008-11-19 15:06:05 -0800
commit804e63909bc3c9e4e2ca67f67eb56a1422f85fba (patch)
tree32a567b8ecfbafbe5938fd9a99a3565c2eeb77e6 /source3/librpc/gen_ndr/srv_ntsvcs.c
parent31a8c4df1305b63729e49a61e27bc9e1825af0d0 (diff)
parentf9d691d9d808ec2f91f3f469fe2201b0909a8552 (diff)
downloadsamba-804e63909bc3c9e4e2ca67f67eb56a1422f85fba.tar.gz
samba-804e63909bc3c9e4e2ca67f67eb56a1422f85fba.tar.bz2
samba-804e63909bc3c9e4e2ca67f67eb56a1422f85fba.zip
Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba
Diffstat (limited to 'source3/librpc/gen_ndr/srv_ntsvcs.c')
-rw-r--r--source3/librpc/gen_ndr/srv_ntsvcs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/librpc/gen_ndr/srv_ntsvcs.c b/source3/librpc/gen_ndr/srv_ntsvcs.c
index ae28b9932e..288f3ed5d7 100644
--- a/source3/librpc/gen_ndr/srv_ntsvcs.c
+++ b/source3/librpc/gen_ndr/srv_ntsvcs.c
@@ -782,13 +782,13 @@ static bool api_PNP_GetDeviceList(pipes_struct *p)
}
ZERO_STRUCT(r->out);
+ r->out.length = r->in.length;
r->out.buffer = talloc_zero_array(r, uint16_t, *r->out.length);
if (r->out.buffer == NULL) {
talloc_free(r);
return false;
}
- r->out.length = r->in.length;
r->out.result = _PNP_GetDeviceList(p, r);
if (p->rng_fault_state) {
@@ -1017,14 +1017,14 @@ static bool api_PNP_GetDeviceRegProp(pipes_struct *p)
ZERO_STRUCT(r->out);
r->out.reg_data_type = r->in.reg_data_type;
+ r->out.buffer_size = r->in.buffer_size;
+ r->out.needed = r->in.needed;
r->out.buffer = talloc_zero_array(r, uint8_t, *r->out.buffer_size);
if (r->out.buffer == NULL) {
talloc_free(r);
return false;
}
- r->out.buffer_size = r->in.buffer_size;
- r->out.needed = r->in.needed;
r->out.result = _PNP_GetDeviceRegProp(p, r);
if (p->rng_fault_state) {