X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/43912d6349ce08bb5d299b1602fba30e0354eaaa..230eaa5391ca5b22c89203caad4db6d1d2ff7b55:/client/emv/tlv.c?ds=inline diff --git a/client/emv/tlv.c b/client/emv/tlv.c index 7feaa9aa..24125cc7 100644 --- a/client/emv/tlv.c +++ b/client/emv/tlv.c @@ -317,7 +317,8 @@ void tlvdb_visit(const struct tlvdb *tlvdb, tlv_cb cb, void *data, int level) for (; tlvdb; tlvdb = next) { next = tlvdb->next; - cb(data, &tlvdb->tag, level); + bool is_leaf = (tlvdb->children == NULL); + cb(data, &tlvdb->tag, level, is_leaf); tlvdb_visit(tlvdb->children, cb, data, level+1); } }