From 2beb76decd14034d453060a616b08e061f4894d6 Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Fri, 15 Jul 2005 16:52:55 +0000 Subject: [PATCH] defect 742 error not returned in saCkptSectionCreate if sectionCreationAttributes == NULL git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@760 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 c24b219e..0d09fd72 100644 --- a/lib/ckpt.c +++ b/lib/ckpt.c @@ -957,6 +957,10 @@ saCkptSectionCreate ( struct req_lib_ckpt_sectioncreate req_lib_ckpt_sectioncreate; struct res_lib_ckpt_sectioncreate res_lib_ckpt_sectioncreate; + if (sectionCreationAttributes == NULL) { + return (SA_AIS_ERR_INVALID_PARAM); + } + error = saHandleInstanceGet (&checkpointHandleDatabase, checkpointHandle, (void *)&ckptCheckpointInstance); if (error != SA_AIS_OK) {