Browse Source

defect 712
if sectionId is null in sectiondelete, return INVALID_PARAM


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

Steven Dake 20 years ago
parent
commit
4c586b894d
1 changed files with 4 additions and 0 deletions
  1. 4 0
      lib/ckpt.c

+ 4 - 0
lib/ckpt.c

@@ -1008,6 +1008,10 @@ saCkptSectionDelete (
 	struct req_lib_ckpt_sectiondelete req_lib_ckpt_sectiondelete;
 	struct req_lib_ckpt_sectiondelete req_lib_ckpt_sectiondelete;
 	struct res_lib_ckpt_sectiondelete res_lib_ckpt_sectiondelete;
 	struct res_lib_ckpt_sectiondelete res_lib_ckpt_sectiondelete;
 
 
+	if (sectionId == NULL) {
+		return (SA_AIS_ERR_INVALID_PARAM);
+	}
+
 	error = saHandleInstanceGet (&checkpointHandleDatabase, checkpointHandle,
 	error = saHandleInstanceGet (&checkpointHandleDatabase, checkpointHandle,
 		(void *)&ckptCheckpointInstance);
 		(void *)&ckptCheckpointInstance);
 	if (error != SA_AIS_OK) {
 	if (error != SA_AIS_OK) {