GUACAMOLE-1940: Correct flag comparison in "guac_rwlock_acquire_write_lock" function

This commit is contained in:
pourfar 2024-04-16 13:14:08 +03:30 committed by Virtually Nick
parent fbf90d51ba
commit 77b7f0d99c

View File

@ -179,7 +179,7 @@ int guac_rwlock_acquire_write_lock(guac_rwlock* reentrant_rwlock) {
* write lock by another function without the caller knowing about it. This
* shouldn't cause any issues, however.
*/
if (key_value == GUAC_REENTRANT_LOCK_READ_LOCK)
if (flag == GUAC_REENTRANT_LOCK_READ_LOCK)
pthread_rwlock_unlock(&(reentrant_rwlock->lock));
/* Acquire the write lock */