mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-05 22:18:33 +00:00
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:
parent
88dea715ff
commit
7a82e2acae
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user