mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
fa5912a17b
We suppress some code when we got unexpected status and assertion checking is off: assert(card_status == VCARD_DONE); if (card_status == VCARD_DONE) { int size = MIN(*receive_buf_len, response->b_total_len); memcpy(receive_buf, response->b_data, size); *receive_buf_len = size; } Such "recovery" is of dubious value even when it works. This one doesn't: it fails to assign to receive_buf[] and *receive_buf_len, which the callers expect. Make the code unconditional. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Alon Levy <alevy@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> |
||
---|---|---|
.. | ||
cac.c | ||
cac.h | ||
card_7816.c | ||
card_7816.h | ||
card_7816t.h | ||
event.c | ||
eventt.h | ||
libcacard.pc.in | ||
libcacard.syms | ||
link_test.c | ||
Makefile | ||
vcard.c | ||
vcard.h | ||
vcard_emul.h | ||
vcard_emul_nss.c | ||
vcard_emul_type.c | ||
vcard_emul_type.h | ||
vcardt.c | ||
vcardt.h | ||
vcardt_internal.h | ||
vevent.h | ||
vreader.c | ||
vreader.h | ||
vreadert.h | ||
vscard_common.h | ||
vscclient.c |