diff --git a/lib/clm.c b/lib/clm.c index 1a88852a..21643cbe 100644 --- a/lib/clm.c +++ b/lib/clm.c @@ -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) {