From 4e4e0ebaf141f1f681e65de3fac6fc3c8fd17a61 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Fri, 17 Jun 2005 18:42:52 +0000 Subject: [PATCH] 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 --- lib/ckpt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ckpt.c b/lib/ckpt.c index acb4740b..2f256581 100644 --- a/lib/ckpt.c +++ b/lib/ckpt.c @@ -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);