projects
/
radsecproxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a05778
)
tlsconnect changes
author
venaas
<venaas>
Wed, 3 Jan 2007 13:33:05 +0000
(13:33 +0000)
committer
venaas
<venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>
Wed, 3 Jan 2007 13:33:05 +0000
(13:33 +0000)
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@7
e88ac4ed
-0b26-0410-9574-
a7f39faa03bf
radsecproxy.c
patch
|
blob
|
history
diff --git
a/radsecproxy.c
b/radsecproxy.c
index
6e1e6e0
..
a948408
100644
(file)
--- 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);