GUACAMOLE-2255: Fix intermittent rdp error handling due to uninitialized variable.#656
Merged
necouchman merged 1 commit intoapache:staging/1.6.1from Apr 2, 2026
Conversation
Contributor
|
@bbennett-ks Can you remove the 2254 commit from this? Also, while commit messages are formatted correctly, the title of the PR is not... (Guacamole 2255). |
ebbc4c5 to
22e0193
Compare
Contributor
Author
Thanks! Done. |
necouchman
approved these changes
Apr 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
connection_closingvariable inrdp.c(line 627) is not initialized before use. When RDP event handling fails early in the do-while loop, the code breaks beforeconnection_closingis assigned a value, leading to potentially aborting a RDP connection because of an error without report the closing as an error.This was caused by a fix for GUACAMOLE-2221 (fix RDP busy-loop on transport failure) which added a break.
I cam across this build Guacamole on Rocky 9.
{code:java}
rdp.c: In function 'guac_rdp_client_thread':
rdp.c:658:12: error: 'connection_closing' may be used uninitialized in this function [-Werror=maybe-uninitialized]
658 | if (connection_closing)
| ^
rdp.c:627:13: note: 'connection_closing' was declared here
627 | int connection_closing;
| ^~~~~~~~~~~~~~~~~~
{code}