summaryrefslogtreecommitdiff
path: root/source3/librpc/gen_ndr/srv_ntsvcs.c
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-10-19 00:26:16 +0200
committerGünther Deschner <gd@samba.org>2008-10-19 00:26:16 +0200
commit044bb5ce391e0b271d5dee87dd05bbedd6bcdadc (patch)
tree99508a8db182594a6a6d0a55fa4b6c3788a5e6e0 /source3/librpc/gen_ndr/srv_ntsvcs.c
parent0d0ab1263957e981457211c0ba0afc69ea404fb7 (diff)
downloadsamba-044bb5ce391e0b271d5dee87dd05bbedd6bcdadc.tar.gz
samba-044bb5ce391e0b271d5dee87dd05bbedd6bcdadc.tar.bz2
samba-044bb5ce391e0b271d5dee87dd05bbedd6bcdadc.zip
s3-build: re-run make samba3-idl.
Guenther
Diffstat (limited to 'source3/librpc/gen_ndr/srv_ntsvcs.c')
-rw-r--r--source3/librpc/gen_ndr/srv_ntsvcs.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/source3/librpc/gen_ndr/srv_ntsvcs.c b/source3/librpc/gen_ndr/srv_ntsvcs.c
index 184d8608fb..87f5d51695 100644
--- a/source3/librpc/gen_ndr/srv_ntsvcs.c
+++ b/source3/librpc/gen_ndr/srv_ntsvcs.c
@@ -781,6 +781,14 @@ static bool api_PNP_GetDeviceList(pipes_struct *p)
NDR_PRINT_IN_DEBUG(PNP_GetDeviceList, r);
}
+ ZERO_STRUCT(r->out);
+ 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) {
@@ -1008,7 +1016,7 @@ static bool api_PNP_GetDeviceRegProp(pipes_struct *p)
}
ZERO_STRUCT(r->out);
- r->out.unknown1 = r->in.unknown1;
+ r->out.reg_data_type = r->in.reg_data_type;
r->out.buffer = talloc_zero_array(r, uint8_t, *r->out.buffer_size);
if (r->out.buffer == NULL) {
talloc_free(r);