From c1044ae1008a8feff23dfcbb9e7b4848440f4ad1 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Wed, 13 Jul 2005 20:01:29 +0000 Subject: [PATCH] defect 677 SectionOverwrite with null sectionId segfaults git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@734 fd59a12c-fef9-0310-b244-a6a79926bd2f --- lib/ckpt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ckpt.c b/lib/ckpt.c index fbfecf5e..b6cad958 100644 --- a/lib/ckpt.c +++ b/lib/ckpt.c @@ -1406,6 +1406,10 @@ saCkptSectionOverwrite ( return (SA_ERR_INVALID_PARAM); } + if (sectionId == NULL) { + return (SA_ERR_INVALID_PARAM); + } + error = saHandleInstanceGet (&checkpointHandleDatabase, checkpointHandle, (void *)&ckptCheckpointInstance); if (error != SA_AIS_OK) {