From 7a82e2acae69ef6366533e1e43cb806bb0e1d45e Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Wed, 29 Jun 2005 21:29:37 +0000 Subject: [PATCH] defect 651 - saCkptCheckpointUnlink segfaults if checkpointName attribute is null git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@715 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 11880a5e..8e4f71de 100644 --- a/lib/ckpt.c +++ b/lib/ckpt.c @@ -718,6 +718,9 @@ saCkptCheckpointUnlink ( struct req_lib_ckpt_checkpointunlink req_lib_ckpt_checkpointunlink; struct res_lib_ckpt_checkpointunlink res_lib_ckpt_checkpointunlink; + if (checkpointName == NULL) { + return (SA_AIS_ERR_INVALID_PARAM); + } error = saHandleInstanceGet (&ckptHandleDatabase, ckptHandle, (void *)&ckptInstance); if (error != SA_AIS_OK) { goto exit_noclose;