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
This commit is contained in:
Steven Dake 2005-06-29 21:29:37 +00:00
parent 88dea715ff
commit 7a82e2acae

View File

@ -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;