summaryrefslogtreecommitdiff
path: root/source4/lib/registry
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2008-09-15 18:21:45 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-21 14:40:41 +0200
commit083785c0919b635601fdfc23c6dcc9368fa14a0d (patch)
treea4cf9e340717f58e0571f6ac00dd71a09c30569a /source4/lib/registry
parentc26cb44e0328aaba1d81cb4bd09b37252c7a725b (diff)
downloadsamba-083785c0919b635601fdfc23c6dcc9368fa14a0d.tar.gz
samba-083785c0919b635601fdfc23c6dcc9368fa14a0d.tar.bz2
samba-083785c0919b635601fdfc23c6dcc9368fa14a0d.zip
Registry server "reg_ldb_unpack_value": Tests demonstrate that also "type" doesn't has to be NULL
Diffstat (limited to 'source4/lib/registry')
-rw-r--r--source4/lib/registry/ldb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/registry/ldb.c b/source4/lib/registry/ldb.c
index be844d75d5..95851dace0 100644
--- a/source4/lib/registry/ldb.c
+++ b/source4/lib/registry/ldb.c
@@ -52,8 +52,8 @@ static void reg_ldb_unpack_value(TALLOC_CTX *mem_ctx,
NULL));
value_type = ldb_msg_find_attr_as_uint(msg, "type", 0);
- if (type != NULL)
- *type = value_type;
+ *type = value_type;
+
val = ldb_msg_find_ldb_val(msg, "data");
switch (value_type)