summaryrefslogtreecommitdiff
path: root/src/ecbor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ecbor.c')
-rw-r--r--src/ecbor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ecbor.c b/src/ecbor.c
index dbbed96..2a9b5fb 100644
--- a/src/ecbor.c
+++ b/src/ecbor.c
@@ -235,14 +235,14 @@ ecbor_get_tag_item (ecbor_item_t *tag, ecbor_item_t *item)
if (!tag) {
return ECBOR_ERR_NULL_ITEM;
}
- if (tag->major_type != ECBOR_MT_ARRAY) {
+ if (tag->major_type != ECBOR_MT_TAG) {
return ECBOR_ERR_INVALID_TYPE;
}
if (!item) {
return ECBOR_ERR_NULL_VALUE;
}
- rc = ecbor_initialize_decode (&context, tag->value.items, tag->size);
+ rc = ecbor_initialize_decode (&context, tag->value.tag.child, tag->size);
if (rc != ECBOR_OK) {
return rc;
}