projects
/
proxmark3-svn
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix rare bug in tlv.c (#788)
[proxmark3-svn]
/
client
/
emv
/
tlv.c
diff --git
a/client/emv/tlv.c
b/client/emv/tlv.c
index 9722c9311ec9cd485daab3527c7e9b245781b12b..05de928ebc03c56dc4604f8945b653019acd22dc 100644
(file)
--- a/
client/emv/tlv.c
+++ b/
client/emv/tlv.c
@@
-352,7
+352,13
@@
struct tlvdb *tlvdb_find_path(struct tlvdb *tlvdb, tlv_tag_t tag[]) {
void tlvdb_add(struct tlvdb *tlvdb, struct tlvdb *other)
{
+ if (tlvdb == other)
+ return;
+
while (tlvdb->next) {
+ if (tlvdb->next == other)
+ return;
+
tlvdb = tlvdb->next;
}
Impressum
,
Datenschutz