[Spice-devel] [spice-gtk][PATCH 4/4] ppc: Fix auth endianess
Fabiano FidĂȘncio
fidencio at redhat.com
Mon May 18 06:11:08 PDT 2015
---
gtk/spice-channel.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gtk/spice-channel.c b/gtk/spice-channel.c
index 0da377b..273cf3a 100644
--- a/gtk/spice-channel.c
+++ b/gtk/spice-channel.c
@@ -1750,14 +1750,14 @@ static gboolean spice_channel_recv_link_msg(SpiceChannel *channel)
#if HAVE_SASL
if (spice_channel_test_common_capability(channel, SPICE_COMMON_CAP_AUTH_SASL)) {
CHANNEL_DEBUG(channel, "Choosing SASL mechanism");
- auth.auth_mechanism = SPICE_COMMON_CAP_AUTH_SASL;
+ auth.auth_mechanism = GUINT32_TO_LE(SPICE_COMMON_CAP_AUTH_SASL);
spice_channel_write(channel, &auth, sizeof(auth));
if (!spice_channel_perform_auth_sasl(channel))
return FALSE;
} else
#endif
if (spice_channel_test_common_capability(channel, SPICE_COMMON_CAP_AUTH_SPICE)) {
- auth.auth_mechanism = SPICE_COMMON_CAP_AUTH_SPICE;
+ auth.auth_mechanism = GUINT32_TO_LE(SPICE_COMMON_CAP_AUTH_SPICE);
spice_channel_write(channel, &auth, sizeof(auth));
spice_channel_send_spice_ticket(channel);
} else {
--
2.4.0
More information about the Spice-devel
mailing list