mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-15 09:13:21 +00:00
Add locking of database in hdb_handle_refcount_get
git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2290 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
54fefe152d
commit
53bf62fd04
@ -333,6 +333,8 @@ static inline int hdb_handle_refcount_get (
|
||||
|
||||
int refcount = 0;
|
||||
|
||||
hdb_database_lock (&handle_database->lock);
|
||||
|
||||
if (handle >= handle_database->handle_count) {
|
||||
hdb_database_unlock (&handle_database->lock);
|
||||
errno = EBADF;
|
||||
|
Loading…
Reference in New Issue
Block a user