mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-06 05:34:02 +00:00
defect 634
saCkptDispatch blocks if invalid dispatch flag is set (Logical change 1.215) git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@687 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
2a9b9a1d54
commit
82d516ea11
@ -259,6 +259,12 @@ saCkptDispatch (
|
||||
struct res_lib_ckpt_checkpointopenasync *res_lib_ckpt_checkpointopenasync;
|
||||
struct ckptCheckpointInstance *ckptCheckpointInstance;
|
||||
|
||||
if (dispatchFlags != SA_DISPATCH_ONE &&
|
||||
dispatchFlags != SA_DISPATCH_ALL &&
|
||||
dispatchFlags != SA_DISPATCH_BLOCKING) {
|
||||
|
||||
return (SA_AIS_ERR_INVALID_PARAM);
|
||||
}
|
||||
|
||||
error = saHandleInstanceGet (&ckptHandleDatabase, ckptHandle,
|
||||
(void *)&ckptInstance);
|
||||
@ -866,6 +872,7 @@ saCkptCheckpointStatusGet (
|
||||
&res_lib_ckpt_checkpointstatusget.checkpointDescriptor,
|
||||
sizeof (SaCkptCheckpointDescriptorT));
|
||||
|
||||
printf ("error is %d\n", res_lib_ckpt_checkpointstatusget.header.error);
|
||||
error_exit:
|
||||
saHandleInstancePut (&checkpointHandleDatabase, checkpointHandle);
|
||||
return (error == SA_AIS_OK ? res_lib_ckpt_checkpointstatusget.header.error : error);
|
||||
|
Loading…
Reference in New Issue
Block a user