[Spice-devel] [PATCH] server: red_channel: properly handle ACK_SYNC on BE machines
Denis Kirjanov
kda at linux-powerpc.org
Mon Apr 13 06:16:44 PDT 2015
This fixes session setup betwen BE host and LE client
Signed-off-by: Denis Kirjanov <kda at itsirius.su>
---
server/red_channel.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/server/red_channel.c b/server/red_channel.c
index a968309..1164cc2 100644
--- a/server/red_channel.c
+++ b/server/red_channel.c
@@ -22,6 +22,7 @@
#include <config.h>
#endif
+#include <glib.h>
#include <stdio.h>
#include <stdint.h>
#include <netinet/in.h>
@@ -1534,7 +1535,7 @@ int red_channel_client_handle_message(RedChannelClient *rcc, uint32_t size,
spice_printerr("bad message size");
return FALSE;
}
- rcc->ack_data.client_generation = *(uint32_t *)(message);
+ rcc->ack_data.client_generation = GUINT32_FROM_LE(*(uint32_t *)(message));
break;
case SPICE_MSGC_ACK:
if (rcc->ack_data.client_generation == rcc->ack_data.generation) {
--
1.7.10.4
More information about the Spice-devel
mailing list