mirror of
https://github.com/libssh2/libssh2.git
synced 2025-08-01 11:26:53 +03:00
Agent NULL check in shutdown #281
This commit is contained in:
@ -223,8 +223,10 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
shutdown:
|
shutdown:
|
||||||
|
|
||||||
|
if (agent) {
|
||||||
libssh2_agent_disconnect(agent);
|
libssh2_agent_disconnect(agent);
|
||||||
libssh2_agent_free(agent);
|
libssh2_agent_free(agent);
|
||||||
|
}
|
||||||
|
|
||||||
if(session) {
|
if(session) {
|
||||||
libssh2_session_disconnect(session,
|
libssh2_session_disconnect(session,
|
||||||
|
Reference in New Issue
Block a user