Explorar o código

Get rid of valgrind warning and possible segfault.

(Logical change 1.76)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@271 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake %!s(int64=22) %!d(string=hai) anos
pai
achega
18f5836ae2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      exec/gmi.c

+ 1 - 1
exec/gmi.c

@@ -3281,7 +3281,7 @@ static void assembly_deliver (struct queue_frag *queue_frag)
 	struct assembly_queue_item *assembly_queue_item;
 	struct pend_queue_item pend_queue_item;
 	int res = 0;
-	struct iovec iovec_delv[256];
+	struct iovec iovec_delv[QUEUE_PEND_SIZE_MAX * MAXIOVS];
 	int iov_len_delv = 0;
 	struct mcast *mcast = 0;
 	int pend_queue_msg_item_count;