diff --git a/libcacard/vreader.c b/libcacard/vreader.c index 93b01c8601..f1288d9986 100644 --- a/libcacard/vreader.c +++ b/libcacard/vreader.c @@ -283,7 +283,7 @@ vreader_xfr_bytes(VReader *reader, response->b_sw2, response->b_len, response->b_total_len); } } - assert(card_status == VCARD_DONE); + assert(card_status == VCARD_DONE && response); int size = MIN(*receive_buf_len, response->b_total_len); memcpy(receive_buf, response->b_data, size); *receive_buf_len = size;