summaryrefslogtreecommitdiff
path: root/radsecproxy.c
diff options
context:
space:
mode:
authorvenaas <venaas>2007-01-03 13:33:05 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2007-01-03 13:33:05 +0000
commit710e73f1f95a23cf6f2a7af7a1b8674ae7606375 (patch)
treedd4b9cac6891794f3ae6552be5240aa4a782ff0e /radsecproxy.c
parent5a05778ab2cfda9a20c781e8f0d1d01bcfb3284b (diff)
tlsconnect changes
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@7 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.c')
-rw-r--r--radsecproxy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index 6e1e6e0..a948408 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -242,6 +242,7 @@ void tlsconnect(struct peer *peer, struct timeval *when, char *text) {
printf("tlsconnect: trying to open TLS connection to %s port %s\n", peer->host, peer->port);
gettimeofday(&now, NULL);
elapsed = now.tv_sec - peer->lastconnecttry.tv_sec;
+ memcpy(&peer->lastconnecttry, &now, sizeof(struct timeval));
if (peer->connectionok) {
peer->connectionok = 0;
sleep(10);