summaryrefslogtreecommitdiff
path: root/source3/libgpo
diff options
context:
space:
mode:
authorGarming Sam <garming@catalyst.net.nz>2018-04-16 14:53:18 +1200
committerAndrew Bartlett <abartlet@samba.org>2018-08-16 23:42:19 +0200
commit463dcc909417f91a576b12b96adfc16e18ffc9a0 (patch)
tree6f0b980b0d7619a4fa814b1bfb14f45b10b2993a /source3/libgpo
parent572fd6319fd60fbca99db42169b80aa0135be058 (diff)
downloadsamba-463dcc909417f91a576b12b96adfc16e18ffc9a0.tar.gz
preg: Unpack winreg_Data for parsing
It seems that there might be pre-existing endianness issues which would be fixed by the ndr_push. Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/libgpo')
-rw-r--r--source3/libgpo/gpext/registry.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/libgpo/gpext/registry.c b/source3/libgpo/gpext/registry.c
index ceb05f030b6..5d51bdff6e9 100644
--- a/source3/libgpo/gpext/registry.c
+++ b/source3/libgpo/gpext/registry.c
@@ -119,7 +119,9 @@ static bool gp_reg_entry_from_file_entry(TALLOC_CTX *mem_ctx,
return false;
data->type = r->type;
- data->data = data_blob_talloc(data, r->data, r->size);
+
+ ndr_push_union_blob(&data->data, mem_ctx, &r->data, r->type,
+ (ndr_push_flags_fn_t)ndr_push_winreg_Data);
entry = talloc_zero(mem_ctx, struct gp_registry_entry);
if (!entry)