-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libssh2: Fix infinite loop when enabling callback without handlers
When libssh2_session_callback_set() is used to activate a callback for which no handler was registered in libssh2_session_init_ex(), this can result in an infinite loop because the user event from lvssh2 is always registered automatically. When the callback is activated, it always returns default values because the VI refnum is undefined. This changes the implementation so that the LabVIEW user event is only created when a valid VI refnum is provided. The extension library returns an error if the user event does not exist, which effectively breaks any infinite loops.
- Loading branch information
1 parent
89c0972
commit 898305a
Showing
22 changed files
with
44 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains 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
Binary file added
BIN
+25.3 KB
tests/integration_tests/test_libssh2_session_callback_set - no handler.vi
Binary file not shown.
Binary file added
BIN
+23.5 KB
tests/integration_tests/test_libssh2_userauth_keyboard_interactive_ex - no handler.vi
Binary file not shown.