mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
reds: Change if style
The nested if statements could be confusing, no needs for them. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Victor Toso <victortoso@redhat.com>
This commit is contained in:
parent
fa36ab45b3
commit
9bcfba3c68
@ -2012,12 +2012,13 @@ static void reds_handle_ticket(void *opaque)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (expired || strcmp(password, reds->config->taTicket.password) != 0) {
|
||||
if (expired) {
|
||||
spice_warning("Ticket has expired");
|
||||
} else {
|
||||
spice_warning("Invalid password");
|
||||
}
|
||||
if (expired) {
|
||||
spice_warning("Ticket has expired");
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (strcmp(password, reds->config->taTicket.password) != 0) {
|
||||
spice_warning("Invalid password");
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user