summaryrefslogtreecommitdiffstats
path: root/server/reds.c
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2012-03-01 18:46:24 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2012-03-05 10:14:36 +0100
commit8f8e73986ba051e1fb10f4d73ef3f0445b399186 (patch)
tree2e9b99b8ffdeab08f5aa67a66e7882212c31d623 /server/reds.c
parent735f8e2837ac30e56efc45112841b3c71bcc85ac (diff)
downloadspice-8f8e73986ba051e1fb10f4d73ef3f0445b399186.tar.gz
spice-8f8e73986ba051e1fb10f4d73ef3f0445b399186.tar.xz
spice-8f8e73986ba051e1fb10f4d73ef3f0445b399186.zip
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
Diffstat (limited to 'server/reds.c')
-rw-r--r--server/reds.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/reds.c b/server/reds.c
index 797d9d52..3a984569 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -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;