Fix initialization of threading

This commit is contained in:
Aris Adamantiadis
2010-09-01 16:05:06 +02:00
parent a93f2d8bfe
commit e67d834156
6 changed files with 21 additions and 6 deletions

View File

@@ -44,6 +44,7 @@ START_TEST (torture_knownhosts_port)
int rc;
char buffer[200];
FILE *file;
//int verbosity=SSH_LOG_FUNCTIONS;
/* Connect to localhost:22, force the port to 1234 and then write
* the known hosts file. Then check that the entry written is
* [localhost]:1234
@@ -68,6 +69,7 @@ START_TEST (torture_knownhosts_port)
session=ssh_new();
ssh_options_set(session,SSH_OPTIONS_HOST,"localhost");
ssh_options_set(session,SSH_OPTIONS_KNOWNHOSTS,KNOWNHOSTFILES);
//ssh_options_set(session,SSH_OPTIONS_LOG_VERBOSITY, &verbosity);
rc=ssh_connect(session);
ck_assert_msg(rc==SSH_OK,ssh_get_error(session));
session->port=1234;