mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-13 12:52:31 +00:00
saEvtEventAttributesSet needs to check that the priority value passed in
is valid. git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@712 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
fa198acf82
commit
2b3bcfb6e0
@ -1392,6 +1392,11 @@ saEvtEventAttributesSet(
|
||||
struct event_data_instance *edi;
|
||||
int i;
|
||||
|
||||
if (priority < SA_EVT_HIGHEST_PRIORITY ||
|
||||
priority > SA_EVT_LOWEST_PRIORITY) {
|
||||
return SA_AIS_ERR_INVALID_PARAM;
|
||||
}
|
||||
|
||||
error = saHandleInstanceGet(&event_handle_db, eventHandle,
|
||||
(void*)&edi);
|
||||
if (error != SA_AIS_OK) {
|
||||
|
Loading…
Reference in New Issue
Block a user