]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/emv/tlv.c
added some info from @peterfillmore fork
[proxmark3-svn] / client / emv / tlv.c
index 7feaa9aa9377d794418bde7c3cdaeb5ea33e2c37..24125cc7d3175dd341eac4811dcdf4f9904cd94e 100644 (file)
@@ -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);
        }
 }
Impressum, Datenschutz