diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-02-07 18:11:42 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-02-07 18:41:59 +1100 |
commit | 5ab6a8d077712c789bbd245f5f7cac7fc71cba81 (patch) | |
tree | e4709f3b2a0fef25279fc812fe2df906b3f62215 /source4/lib/registry/ldb.c | |
parent | 70534adee10fc6f5bba2d9304668dc6508e5de5a (diff) | |
download | samba-5ab6a8d077712c789bbd245f5f7cac7fc71cba81.tar.gz samba-5ab6a8d077712c789bbd245f5f7cac7fc71cba81.tar.bz2 samba-5ab6a8d077712c789bbd245f5f7cac7fc71cba81.zip |
s4-registry: fixed byte order assumptions
the registry tests were broken on big-endian systems
Diffstat (limited to 'source4/lib/registry/ldb.c')
-rw-r--r-- | source4/lib/registry/ldb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/registry/ldb.c b/source4/lib/registry/ldb.c index 033fdcb780..d70489ac03 100644 --- a/source4/lib/registry/ldb.c +++ b/source4/lib/registry/ldb.c @@ -80,7 +80,8 @@ static void reg_ldb_unpack_value(TALLOC_CTX *mem_ctx, case REG_DWORD: { uint32_t tmp = strtoul((char *)val->data, NULL, 0); - *data = data_blob_talloc(mem_ctx, &tmp, 4); + *data = data_blob_talloc(mem_ctx, NULL, 4); + SIVAL(data->data, 0, tmp); } break; |