second part of win32 changes

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@143 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
Aris Adamantiadis
2008-03-07 02:11:40 +00:00
parent 0d6e3c1790
commit c284eb4e38
10 changed files with 296 additions and 8 deletions

View File

@@ -235,6 +235,7 @@ int ssh_connect(SSH_SESSION *session){
session->alive=0;
session->client=1;
ssh_crypto_init();
ssh_socket_init();
if(options->fd==-1 && !options->host){
ssh_set_error(session,SSH_FATAL,"Hostname required");
return SSH_ERROR;