diff options
author | venaas <venaas> | 2007-01-04 14:02:05 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2007-01-04 14:02:05 +0000 |
commit | 28699bc5e546f880b466e392659c927456e40820 (patch) | |
tree | 515efcfee4ae09b8e912935832d3d7eb13517d42 /radsecproxy.c | |
parent | 55a8e96d71e33b84351773d42d5d146fd35fe363 (diff) |
fixed minor bugs
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@26 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.c')
-rw-r--r-- | radsecproxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/radsecproxy.c b/radsecproxy.c index f5237a1..faaac55 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -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); } |