Commit 28699bc5 authored by venaas's avatar venaas Committed by venaas
Browse files

fixed minor bugs

git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@26 e88ac4ed-0b26-0410-9574-a7f39faa03bf
parent 55a8e96d
......@@ -285,7 +285,6 @@ void tlsconnect(struct server *server, struct timeval *when, char *text) {
printf("tlsconnect: trying to open TLS connection to %s port %s\n", server->host, server->port);
gettimeofday(&now, NULL);
elapsed = now.tv_sec - server->lastconnecttry.tv_sec;
memcpy(&server->lastconnecttry, &now, sizeof(struct timeval));
if (server->connectionok) {
server->connectionok = 0;
sleep(10);
......@@ -308,6 +307,7 @@ void tlsconnect(struct server *server, struct timeval *when, char *text) {
err("tlsconnect: TLS: %s", ERR_error_string(error, NULL));
}
printf("tlsconnect: TLS connection to %s port %s up\n", server->host, server->port);
gettimeofday(&server->lastconnecttry, NULL);
pthread_mutex_unlock(&server->lock);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment