defect 642

fix segfault when null clusterNode parameter passed to saClusterNodeGet

(Logical change 1.223)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@703 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
Steven Dake 2005-06-17 18:52:08 +00:00
parent 0c740cf0d3
commit 329fbb4fe3

View File

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