This commit is contained in:
iceman1001 2019-04-08 10:19:01 +02:00
commit 2b3e5b7aac

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) { 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) { bool tlv_equal(const struct tlv *a, const struct tlv *b) {