summaryrefslogtreecommitdiff
path: root/src/rfid_proto_tcl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rfid_proto_tcl.c')
-rw-r--r--src/rfid_proto_tcl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rfid_proto_tcl.c b/src/rfid_proto_tcl.c
index b7577e3..afcfb36 100644
--- a/src/rfid_proto_tcl.c
+++ b/src/rfid_proto_tcl.c
@@ -127,6 +127,8 @@ tcl_parse_ats(struct rfid_protocol_handle *h,
cur = &ats[2];
iso14443_fsdi_to_fsd(&h->priv.tcl.fsc, t0 & 0x0f);
+ if (h->priv.tcl.fsc > h->l2h->rh->ah->mtu)
+ h->priv.tcl.fsc = h->l2h->rh->ah->mtu;
if (t0 & (1 << 4)) {
/* TA is transmitted */
personal git repositories of Harald Welte. Your mileage may vary