r17516: Change helper function names to make more clear what they are meant to do
[jelmer/samba4-debian.git] / source / lib / registry / reg_backend_ldb.c
index a8c054cc165ddef4c78ba2a932d5e73c7cd53a1f..f4ed80fa7bb5ba2b3e4ad650c0007d40d9e927a7 100644 (file)
@@ -42,8 +42,8 @@ static int ldb_free_hive (struct registry_hive *hive)
 static void reg_ldb_unpack_value(TALLOC_CTX *mem_ctx, struct ldb_message *msg, char **name, uint32_t *type, DATA_BLOB *data)
 {
        const struct ldb_val *val;
-       *name = talloc_strdup(mem_ctx, ldb_msg_find_string(msg, "value", NULL));
-       *type = ldb_msg_find_uint(msg, "type", 0);
+       *name = talloc_strdup(mem_ctx, ldb_msg_find_attr_as_string(msg, "value", NULL));
+       *type = ldb_msg_find_attr_as_uint(msg, "type", 0);
        val = ldb_msg_find_ldb_val(msg, "data");
 
        switch (*type)