Skip to content

Commit

Permalink
GUACAMOLE-1732: Merge locking fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmuehlner authored Mar 14, 2024
2 parents 62b4f90 + ce1e4b3 commit af6a5bb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/protocols/rdp/rdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ BOOL rdp_freerdp_pre_connect(freerdp* instance) {

/* Downgrade the lock to allow for concurrent read access */
guac_rwlock_release_lock(&(rdp_client->lock));
guac_rwlock_acquire_read_lock(&(rdp_client->lock));
}

/* Load "cliprdr" service if not disabled */
Expand Down Expand Up @@ -537,6 +536,7 @@ static int guac_rdp_handle_connection(guac_client* client) {
}

/* Upgrade to write lock again for further exclusive operations */
guac_rwlock_release_lock(&(rdp_client->lock));
guac_rwlock_acquire_write_lock(&(rdp_client->lock));

/* Connection complete */
Expand Down Expand Up @@ -843,4 +843,3 @@ void* guac_rdp_client_thread(void* data) {
return NULL;

}

0 comments on commit af6a5bb

Please sign in to comment.