Explorar o código

defect 640
fix wrong error code when null version parameter passed to saClmInitialize

(Logical change 1.221)


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

Steven Dake %!s(int64=21) %!d(string=hai) anos
pai
achega
71c43b313b
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      lib/clm.c

+ 3 - 0
lib/clm.c

@@ -105,6 +105,9 @@ saClmInitialize (
 	if (clmHandle == NULL) {
 		return (SA_AIS_ERR_INVALID_PARAM);
 	}
+	if (version == NULL) {
+		return (SA_AIS_ERR_VERSION);
+	}
 
 	error = saVersionVerify (&clmVersionDatabase, version);
 	if (error != SA_OK) {