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:
Steven Dake 2005-06-17 18:47:03 +00:00
parent 0362c8717f
commit 54bc55ff8b

View File

@ -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) {