summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_ntsvcs_nt.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-05-24 14:06:20 +0200
committerMichael Adam <obnox@samba.org>2010-05-25 10:35:29 +0200
commitdcf2cc2806bcccef42adf84c8a60e875bc49efdf (patch)
tree01dce731f189308a549614bfc0dfcb4e146c5727 /source3/rpc_server/srv_ntsvcs_nt.c
parent1be8f5fba4d5059a43732e2ad65ab269132bd205 (diff)
downloadsamba-dcf2cc2806bcccef42adf84c8a60e875bc49efdf.tar.gz
samba-dcf2cc2806bcccef42adf84c8a60e875bc49efdf.tar.bz2
samba-dcf2cc2806bcccef42adf84c8a60e875bc49efdf.zip
s3:srv_ntsvcs: use regval_ctr/blob accessor functions
Diffstat (limited to 'source3/rpc_server/srv_ntsvcs_nt.c')
-rw-r--r--source3/rpc_server/srv_ntsvcs_nt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/rpc_server/srv_ntsvcs_nt.c b/source3/rpc_server/srv_ntsvcs_nt.c
index c7fd3ccc89..ebe117db42 100644
--- a/source3/rpc_server/srv_ntsvcs_nt.c
+++ b/source3/rpc_server/srv_ntsvcs_nt.c
@@ -149,22 +149,22 @@ WERROR _PNP_GetDeviceRegProp(pipes_struct *p,
return WERR_GENERAL_FAILURE;
}
- if (*r->in.buffer_size < val->size) {
- *r->out.needed = val->size;
+ if (*r->in.buffer_size < regval_size(val)) {
+ *r->out.needed = regval_size(val);
*r->out.buffer_size = 0;
TALLOC_FREE( values );
return WERR_CM_BUFFER_SMALL;
}
- r->out.buffer = (uint8_t *)talloc_memdup(p->mem_ctx, val->data_p, val->size);
+ r->out.buffer = (uint8_t *)talloc_memdup(p->mem_ctx, regval_data_p(val), regval_size(val));
TALLOC_FREE(values);
if (!r->out.buffer) {
return WERR_NOMEM;
}
*r->out.reg_data_type = REG_SZ; /* always 1...tested using a remove device manager connection */
- *r->out.buffer_size = val->size;
- *r->out.needed = val->size;
+ *r->out.buffer_size = regval_size(val);
+ *r->out.needed = regval_size(val);
break;