mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-06 03:23:02 +00:00
defecct 747
in saCkptSectionIterationInitialize if sectionsChosen invalid, return INVALID_PARAM git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@765 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
1f6be061f8
commit
4270bd2185
@ -1171,6 +1171,15 @@ saCkptSectionIterationInitialize (
|
||||
if (sectionIterationHandle == NULL) {
|
||||
return (SA_AIS_ERR_INVALID_PARAM);
|
||||
}
|
||||
|
||||
if (sectionsChosen != SA_CKPT_SECTIONS_FOREVER &&
|
||||
sectionsChosen != SA_CKPT_SECTIONS_LEQ_EXPIRATION_TIME &&
|
||||
sectionsChosen != SA_CKPT_SECTIONS_GEQ_EXPIRATION_TIME &&
|
||||
sectionsChosen != SA_CKPT_SECTIONS_CORRUPTED &&
|
||||
sectionsChosen != SA_CKPT_SECTIONS_ANY) {
|
||||
|
||||
return (SA_AIS_ERR_INVALID_PARAM);
|
||||
}
|
||||
error = saHandleInstanceGet (&checkpointHandleDatabase, checkpointHandle,
|
||||
(void *)&ckptCheckpointInstance);
|
||||
if (error != SA_AIS_OK) {
|
||||
|
Loading…
Reference in New Issue
Block a user