mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-27 07:29:32 +00:00
reds: Remove possible leak during SASL authentication
We need to free the connection if the mechanism name is wrong Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Uri Lublin <uril@redhat.com>
This commit is contained in:
parent
158ab5f921
commit
83c5fa8d32
@ -2202,6 +2202,7 @@ static void reds_handle_auth_mechname(void *opaque)
|
||||
|
||||
if (!red_sasl_handle_auth_mechname(link->stream, reds_handle_auth_startlen, link)) {
|
||||
reds_send_link_error(link, SPICE_LINK_ERR_INVALID_DATA);
|
||||
reds_link_free(link);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user