From 7e745c7444f4270cedd18bd56a091ea55e0c1e62 Mon Sep 17 00:00:00 2001 From: Jan Friesse Date: Mon, 10 Aug 2009 15:07:40 +0000 Subject: [PATCH] Swap item in cpg_joinlist This patch add swab of header->size so big endian architectures works with LE list and vica versa. git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2384 fd59a12c-fef9-0310-b244-a6a79926bd2f --- services/cpg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/cpg.c b/services/cpg.c index 613970fb..cac623d3 100644 --- a/services/cpg.c +++ b/services/cpg.c @@ -624,7 +624,7 @@ static void exec_cpg_joinlist_endian_convert (void *msg_v) coroipc_response_header_t *res = (coroipc_response_header_t *)msg; struct join_list_entry *jle = (struct join_list_entry *)(msg + sizeof(coroipc_response_header_t)); - /* XXX shouldn't mar_res_header be swabbed? */ + swab_mar_int32_t (&res->size); while ((const char*)jle < msg + res->size) { jle->pid = swab32(jle->pid);