mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
red-stream: Use mechname for mechname
There's no reason to copy mechname into mechlist to use mechlist instead of mechname. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
a7b8ea4b7a
commit
f7ca5d4a15
@ -886,9 +886,9 @@ RedSaslError red_sasl_handle_auth_start(RedStream *stream, AsyncReadDone read_cb
|
||||
}
|
||||
|
||||
spice_debug("Start SASL auth with mechanism %s. Data %p (%d bytes)",
|
||||
sasl->mechlist, clientdata, datalen);
|
||||
sasl->mechname, clientdata, datalen);
|
||||
err = sasl_server_start(sasl->conn,
|
||||
sasl->mechlist,
|
||||
sasl->mechname,
|
||||
clientdata,
|
||||
datalen,
|
||||
&serverout,
|
||||
@ -1001,9 +1001,6 @@ bool red_sasl_handle_auth_mechname(RedStream *stream, AsyncReadDone read_cb, voi
|
||||
}
|
||||
}
|
||||
|
||||
g_free(sasl->mechlist);
|
||||
sasl->mechlist = g_strdup(sasl->mechname);
|
||||
|
||||
spice_debug("Validated mechname '%s'", sasl->mechname);
|
||||
|
||||
red_stream_async_read(stream, (uint8_t *)&sasl->len, sizeof(uint32_t),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user