Explorar o código

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 %!s(int64=20) %!d(string=hai) anos
pai
achega
1f6be061f8
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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) {