Kaynağa Gözat

Patch to set unset value in token hold cancel structure as to not crash
wireshark.


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

Steven Dake 16 yıl önce
ebeveyn
işleme
bc64fbcb58
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      exec/totemsrp.c

+ 1 - 0
exec/totemsrp.c

@@ -2627,6 +2627,7 @@ static int token_hold_cancel_send (struct totemsrp_instance *instance)
 	 */
 	 */
 	token_hold_cancel.header.type = MESSAGE_TYPE_TOKEN_HOLD_CANCEL;
 	token_hold_cancel.header.type = MESSAGE_TYPE_TOKEN_HOLD_CANCEL;
 	token_hold_cancel.header.endian_detector = ENDIAN_LOCAL;
 	token_hold_cancel.header.endian_detector = ENDIAN_LOCAL;
+	token_hold_cancel.header.encapsulated = 0;
 	token_hold_cancel.header.nodeid = instance->my_id.addr[0].nodeid;
 	token_hold_cancel.header.nodeid = instance->my_id.addr[0].nodeid;
 	memcpy (&token_hold_cancel.ring_id, &instance->my_ring_id,
 	memcpy (&token_hold_cancel.ring_id, &instance->my_ring_id,
 		sizeof (struct memb_ring_id));
 		sizeof (struct memb_ring_id));