diff --git a/lib/util.c b/lib/util.c index 17c525aa..a673fd31 100644 --- a/lib/util.c +++ b/lib/util.c @@ -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) {