diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-03-19 19:55:32 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2010-03-21 14:03:57 +0100 |
commit | 2f79217964ef2f3b4b5c8bd8780db88081ecbc5d (patch) | |
tree | fc694721450a4bf9e041c7cd882a464c8c7541fd /source4/lib/registry/ldb.c | |
parent | d82b325bc315d4d1dc4e5489e0c5df1764835540 (diff) | |
download | samba-2f79217964ef2f3b4b5c8bd8780db88081ecbc5d.tar.gz |
s4:registry - handle type "DWORD_BIG_ENDIAN" as type "DWORD"
Further tests show that (at least per default) there aren't any differences
between them.
Diffstat (limited to 'source4/lib/registry/ldb.c')
-rw-r--r-- | source4/lib/registry/ldb.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/source4/lib/registry/ldb.c b/source4/lib/registry/ldb.c index 4dff5e39873..b21ca8e27be 100644 --- a/source4/lib/registry/ldb.c +++ b/source4/lib/registry/ldb.c @@ -228,14 +228,8 @@ static struct ldb_message *reg_ldb_pack_value(struct ldb_context *ctx, if (data.length == sizeof(uint32_t)) { char *conv_str; - if (type == REG_DWORD) { - conv_str = talloc_asprintf(msg, "0x%8.8x", - IVAL(data.data, 0)); - } else { - conv_str = talloc_asprintf(msg, "0x%8.8x", - RIVAL(data.data, 0)); - } - + conv_str = talloc_asprintf(msg, "0x%8.8x", + IVAL(data.data, 0)); if (conv_str == NULL) { talloc_free(msg); return NULL; |