Browse Source

Fix message alignment in CPG.
we now unpack the message in the same way as we pack it.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1084 fd59a12c-fef9-0310-b244-a6a79926bd2f

Patrick Caulfield 19 years ago
parent
commit
d84e890831
1 changed files with 1 additions and 1 deletions
  1. 1 1
      exec/cpg.c

+ 1 - 1
exec/cpg.c

@@ -767,7 +767,7 @@ static void message_handler_req_exec_cpg_mcast (
 	res_lib_cpg_mcast->nodeid = nodeid;
 	memcpy(&res_lib_cpg_mcast->group_name, &gi->group_name,
 		sizeof(struct cpg_name));
-	memcpy(&res_lib_cpg_mcast->message, req_exec_cpg_mcast->message,
+	memcpy(&res_lib_cpg_mcast->message, (char*)message+sizeof(*req_exec_cpg_mcast),
 		msglen);
 
 	/* Send to all interested members */