mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-03 04:34:54 +00:00
defect 655
invalid checkpoint open flags should return ERR_BAD_FLAGS git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@719 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
54ea8b5920
commit
0f9972efb5
@ -504,6 +504,10 @@ saCkptCheckpointOpen (
|
||||
return (SA_AIS_ERR_INVALID_PARAM);
|
||||
}
|
||||
|
||||
if (checkpointOpenFlags & ~(SA_CKPT_CHECKPOINT_READ|SA_CKPT_CHECKPOINT_WRITE|SA_CKPT_CHECKPOINT_CREATE)) {
|
||||
return (SA_AIS_ERR_BAD_FLAGS);
|
||||
}
|
||||
|
||||
error = saHandleInstanceGet (&ckptHandleDatabase, ckptHandle,
|
||||
(void *)&ckptInstance);
|
||||
if (error != SA_AIS_OK) {
|
||||
|
Loading…
Reference in New Issue
Block a user