mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-27 07:29:32 +00:00
server/smartcard: print instead of assert on bad reader_id in smartcard_char_device_on_message_from_device
This commit is contained in:
parent
fe83d01162
commit
612f9744df
@ -114,7 +114,9 @@ void smartcard_char_device_on_message_from_device(
|
||||
break;
|
||||
}
|
||||
/* We pass any VSC_Error right now - might need to ignore some? */
|
||||
ASSERT(state->reader_id != VSCARD_UNDEFINED_READER_ID);
|
||||
if (state->reader_id == VSCARD_UNDEFINED_READER_ID && vheader->type != VSC_Init) {
|
||||
red_printf("error: reader_id not assigned for message of type %d", vheader->type);
|
||||
}
|
||||
ASSERT(g_smartcard_channel != NULL);
|
||||
sent_header = spice_memdup(vheader, sizeof(*vheader) + vheader->length);
|
||||
/* We patch the reader_id, since the device only knows about itself, and
|
||||
|
||||
Loading…
Reference in New Issue
Block a user