]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
set time to now. CID #1419868
authorAlan T. DeKok <aland@freeradius.org>
Thu, 19 Oct 2017 19:28:24 +0000 (15:28 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 19 Oct 2017 19:28:24 +0000 (15:28 -0400)
src/modules/proto_detail/proto_detail_file.c

index 74894540bf9ddcdbb92ac5ee36d57da6fc811e66..73643cda71c9bcb1a9bcdcda7e4ebaaa1799c730 100644 (file)
@@ -248,6 +248,7 @@ static void work_exists(proto_detail_file_t *inst, int fd)
                DEBUG3("Waiting %d.%06ds for lock on file %s",
                       (int) when.tv_sec, (int) when.tv_usec, inst->filename_work);
 
+               gettimeofday(&now, NULL);
                fr_timeval_add(&when, &when, &now);
 
                if (fr_event_timer_insert(inst, inst->el, &inst->ev,