mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-08 12:24:55 +00:00
red-stream: Avoid to specify 2 mech names during SASL
Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Snir Sheriber <ssheribe@redhat.com>
This commit is contained in:
parent
f3be28fb5e
commit
cb099522bf
@ -985,7 +985,7 @@ bool red_sasl_handle_auth_mechname(RedStream *stream, AsyncReadDone read_cb, voi
|
||||
char quoted_mechname[SASL_MAX_MECHNAME_LEN + 4];
|
||||
sprintf(quoted_mechname, ",%s,", sasl->mechname);
|
||||
|
||||
if (strstr(sasl->mechlist, quoted_mechname) == NULL) {
|
||||
if (strchr(sasl->mechname, ',') || strstr(sasl->mechlist, quoted_mechname) == NULL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user