瀏覽代碼

defect 677
SectionOverwrite with null sectionId segfaults


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

Steven Dake 20 年之前
父節點
當前提交
c1044ae100
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      lib/ckpt.c

+ 4 - 0
lib/ckpt.c

@@ -1406,6 +1406,10 @@ saCkptSectionOverwrite (
 		return (SA_ERR_INVALID_PARAM);
 	}
 
+	if (sectionId == NULL) {
+		return (SA_ERR_INVALID_PARAM);
+	}
+
 	error = saHandleInstanceGet (&checkpointHandleDatabase, checkpointHandle,
 		(void *)&ckptCheckpointInstance);
 	if (error != SA_AIS_OK) {