You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
SSh2Client client1 (settings)
// ... Do stuff with client1
}
{
Ssh2Client client2 (settings)
// ... Do stuff with client2, this will crash on windows
}
Client2 will crash because libssh2_exit() and then libssh2_init() is called again. libssh2_init() should only be called once, and libssh2_exit() should be called on program exit.
The text was updated successfully, but these errors were encountered:
vpicaver
added a commit
to vpicaver/qlibssh2
that referenced
this issue
Jul 9, 2021
This removes the reference counting on libssh2_init() and libssh2_exit()
If a instance of Ssh2Client is ever created, then connection is mad with QCoreApplication to exit libssh2 using libssh2_exit()
For example:
Client2 will crash because libssh2_exit() and then libssh2_init() is called again. libssh2_init() should only be called once, and libssh2_exit() should be called on program exit.
The text was updated successfully, but these errors were encountered: