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

defect 710
if ioVector == NULL in checkpoint read error should be returned


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

Steven Dake 20 лет назад
Родитель
Сommit
3946f75662
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      lib/ckpt.c

+ 4 - 0
lib/ckpt.c

@@ -1327,6 +1327,10 @@ saCkptCheckpointWrite (
 	struct iovec iov[3];
 	int iov_len = 0;
 
+	if (ioVector == NULL) {
+		return (SA_AIS_ERR_INVALID_PARAM);
+	}
+
 	error = saHandleInstanceGet (&checkpointHandleDatabase, checkpointHandle,
 		(void *)&ckptCheckpointInstance);
 	if (error != SA_AIS_OK) {