defect 631

Fix segfault if null pointer passed to selection object address of
saCkptSelectionObjectGet

(Logical change 1.212)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@680 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
Steven Dake 2005-06-17 18:42:52 +00:00
parent 92ab7d0514
commit 4e4e0ebaf1

View File

@ -219,6 +219,9 @@ saCkptSelectionObjectGet (
struct ckptInstance *ckptInstance;
SaAisErrorT error;
if (selectionObject == NULL) {
return (SA_AIS_ERR_INVALID_PARAM);
}
error = saHandleInstanceGet (&ckptHandleDatabase, ckptHandle, (void *)&ckptInstance);
if (error != SA_AIS_OK) {
return (error);