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

defect 746
return INVALID_PARAM in saCkptSectionIterationInitialize if address is NULL


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

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

+ 3 - 0
lib/ckpt.c

@@ -1168,6 +1168,9 @@ saCkptSectionIterationInitialize (
 	struct req_lib_ckpt_sectioniteratorinitialize req_lib_ckpt_sectioniteratorinitialize;
 	struct res_lib_ckpt_sectioniteratorinitialize res_lib_ckpt_sectioniteratorinitialize;
 
+	if (sectionIterationHandle == NULL) {
+		return (SA_AIS_ERR_INVALID_PARAM);
+	}
 	error = saHandleInstanceGet (&checkpointHandleDatabase, checkpointHandle,
 		(void *)&ckptCheckpointInstance);
 	if (error != SA_AIS_OK) {