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
This commit is contained in:
Jan Friesse 2009-08-10 15:07:40 +00:00
parent 498f24fa32
commit 7e745c7444

View File

@ -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);