diff options
author | Andreas Schneider <asn@samba.org> | 2010-08-05 11:36:37 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2010-08-05 12:08:40 +0200 |
commit | 174a46837d728e67e8a8226db143f9018f5faf2d (patch) | |
tree | 70bed1f644d0dc6cf6d1e573dc0694c9d8883731 /source3/rpc_server | |
parent | ce2a086119330a0a39e6d7423432c1b2e0da247b (diff) | |
download | samba-174a46837d728e67e8a8226db143f9018f5faf2d.tar.gz samba-174a46837d728e67e8a8226db143f9018f5faf2d.tar.bz2 samba-174a46837d728e67e8a8226db143f9018f5faf2d.zip |
s3-spoolss: Use the correct value for the data length.
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_spoolss_util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_spoolss_util.c b/source3/rpc_server/srv_spoolss_util.c index ab6be2f69d..076e2da503 100644 --- a/source3/rpc_server/srv_spoolss_util.c +++ b/source3/rpc_server/srv_spoolss_util.c @@ -499,7 +499,7 @@ static WERROR winreg_printer_enumvalues(TALLOC_CTX *mem_ctx, val.value_name_len = strlen_m_term(val.value_name) * 2; val.type = type; - val.data_length = data_size; + val.data_length = length; val.data = NULL; if (val.data_length) { val.data = talloc(enum_values, DATA_BLOB); @@ -507,7 +507,7 @@ static WERROR winreg_printer_enumvalues(TALLOC_CTX *mem_ctx, result = WERR_NOMEM; goto error; } - *val.data = data_blob_talloc(enum_values, data, data_size); + *val.data = data_blob_talloc(val.data, data, val.data_length); } enum_values[i] = val; |