mirror of https://github.com/macssh/macssh.git
Add closesocket/done gotos in ssh2_thread()
This commit is contained in:
parent
cf3df904a9
commit
db22002b7f
|
@ -1649,11 +1649,15 @@ closesession:
|
|||
|
||||
libssh2_session_disconnect(session, "Normal Shutdown");
|
||||
libssh2_session_free(session);
|
||||
close(sock);
|
||||
libssh2_exit();
|
||||
}
|
||||
|
||||
closesocket:
|
||||
close(sock);
|
||||
libssh2_exit();
|
||||
}
|
||||
|
||||
done:
|
||||
return NULL;
|
||||
|
||||
#if 0
|
||||
context = (lshcontext *)NewPtr(sizeof(lshcontext));
|
||||
|
|
Loading…
Reference in New Issue