mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-07-25 05:34:00 +00:00
defect 636
fix saClmDispatch blocks on invalid dispatch flags (Logical change 1.217) git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@691 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
0362c8717f
commit
54bc55ff8b
@ -189,6 +189,13 @@ saClmDispatch (
|
||||
SaClmClusterNotificationBufferT notificationBuffer;
|
||||
int copy_items;
|
||||
|
||||
if (dispatchFlags != SA_DISPATCH_ONE &&
|
||||
dispatchFlags != SA_DISPATCH_ALL &&
|
||||
dispatchFlags != SA_DISPATCH_BLOCKING) {
|
||||
|
||||
return (SA_AIS_ERR_INVALID_PARAM);
|
||||
}
|
||||
|
||||
error = saHandleInstanceGet (&clmHandleDatabase, clmHandle,
|
||||
(void *)&clmInstance);
|
||||
if (error != SA_OK) {
|
||||
|
Loading…
Reference in New Issue
Block a user