This commit is contained in:
iceman1001 committed 2019-04-08 10:19:01 +02:00
1 parent ebe98723d4
commit 2b3e5b7aac
1 file changed
+1 -1
+1 -1
View File
@@ -508,7 +508,7 @@ unsigned char *tlv_encode(const struct tlv *tlv, size_t *len) {
}
bool tlv_is_constructed(const struct tlv *tlv) {
return (tlv->tag < 0x100 ? tlv->tag : tlv->tag >> 8) & TLV_TAG_COMPLEX;
return (((tlv->tag < 0x100 ? tlv->tag : tlv->tag >> 8) & TLV_TAG_COMPLEX) == TLV_TAG_COMPLEX);
}
bool tlv_equal(const struct tlv *a, const struct tlv *b) {