Просмотр исходного кода

on 32 bit platforms, the message source conn info could have uninitialized
values.


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

Steven Dake 19 лет назад
Родитель
Сommit
a161cc23c8
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      exec/ipc.c

+ 1 - 0
exec/ipc.c

@@ -1004,6 +1004,7 @@ void message_source_set (
 	void *conn)
 {
 	assert ((source != NULL) && (conn != NULL));
+	memset (source, 0, sizeof (mar_message_source_t));
 	source->nodeid = my_ip->nodeid;
 	source->conn = conn;
 }