ソースを参照

defect 635
saClmSelectionObjectGet crashes if selection object pointer is null

(Logical change 1.216)


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

Steven Dake 20 年 前
コミット
55165bb3df
1 ファイル変更3 行追加0 行削除
  1. 3 0
      lib/clm.c

+ 3 - 0
lib/clm.c

@@ -156,6 +156,9 @@ saClmSelectionObjectGet (
 	struct clmInstance *clmInstance;
 	SaAisErrorT error;
 
+	if (selectionObject == NULL) {
+		return (SA_AIS_ERR_INVALID_PARAM);
+	}
 	error = saHandleInstanceGet (&clmHandleDatabase, clmHandle,
 		(void *)&clmInstance);
 	if (error != SA_OK) {