--- reg_backend_rpc.c 2007-06-20 11:12:08.000000000 +0200 +++ /tmp/samba-4.0.0tp1/source/lib/registry/reg_backend_rpc.c 2005-12-30 23:46:16.000000000 +0100 @@ -203,7 +203,7 @@ W_ERROR_IS_OK(r.out.result) && r.out.length) { *value = talloc(mem_ctx, struct registry_value); (*value)->name = talloc_strdup(mem_ctx, r.out.name->name); - (*value)->data_type = *r.out.type; + (*value)->data_type = type; (*value)->data = data_blob_talloc(mem_ctx, r.out.value, *r.out.length); return WERR_OK; }