summaryrefslogtreecommitdiffstats
path: root/otime.c
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2005-11-09 10:03:50 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2005-11-09 10:03:50 +0000
commitba2ebecbedee53f00575b607e0a6c873b97ca4d1 (patch)
treeea75194afca59713e2f0ad866a76a909f467af74 /otime.c
parentc18548e37e905755fd06bf02069c3943d5cfb431 (diff)
downloadopenvpn-ba2ebecbedee53f00575b607e0a6c873b97ca4d1.tar.gz
openvpn-ba2ebecbedee53f00575b607e0a6c873b97ca4d1.tar.xz
openvpn-ba2ebecbedee53f00575b607e0a6c873b97ca4d1.zip
Fixed update_time to use a better algorithm for
preventing time backtracks even if the system clock backtracks. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@789 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'otime.c')
-rw-r--r--otime.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/otime.c b/otime.c
index ad9cbbf..14a52af 100644
--- a/otime.c
+++ b/otime.c
@@ -35,6 +35,7 @@
#include "memdbg.h"
volatile time_t now; /* GLOBAL */
+unsigned int now_adj = 0; /* GLOBAL */
/*
* Return a numerical string describing a struct timeval.