mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-12 19:18:11 +00:00
Add log for invalid/expired tickets
Currently, when a ticket has already expired, or is invalid, there is no qemu log to tell what went wrong. This commit adds such a log. Fixes rhbz#787669
This commit is contained in:
parent
735f8e2837
commit
8f8e73986b
@ -1860,6 +1860,11 @@ static void reds_handle_ticket(void *opaque)
|
||||
}
|
||||
|
||||
if (expired || strncmp(password, taTicket.password, SPICE_MAX_PASSWORD_LENGTH) != 0) {
|
||||
if (expired) {
|
||||
red_printf("Ticket has expired");
|
||||
} else {
|
||||
red_printf("Invalid password");
|
||||
}
|
||||
reds_send_link_result(link, SPICE_LINK_ERR_PERMISSION_DENIED);
|
||||
reds_link_free(link);
|
||||
return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user