diff --git a/include/corosync/hdb.h b/include/corosync/hdb.h index ff14535a..3fa0ebbc 100644 --- a/include/corosync/hdb.h +++ b/include/corosync/hdb.h @@ -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;