mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-15 03:52:10 +00:00
Fix off by one which oculd cause invalid handle to be used.
(Logical change 1.98) git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@363 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
0c666cff56
commit
54c310f1a1
@ -439,7 +439,7 @@ saHandleInstanceGet (
|
||||
{
|
||||
pthread_mutex_lock (&handleDatabase->mutex);
|
||||
|
||||
if (handle > handleDatabase->handleCount) {
|
||||
if (handle >= handleDatabase->handleCount) {
|
||||
return (SA_ERR_BAD_HANDLE);
|
||||
}
|
||||
if (handleDatabase->handles[handle].state != SA_HANDLE_STATE_ACTIVE) {
|
||||
|
Loading…
Reference in New Issue
Block a user