aboutsummaryrefslogtreecommitdiffstats
path: root/src/firedns.c
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2021-02-01 14:46:43 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2021-02-01 14:46:43 -0500
commitaf79a6ffb6ab72473a7ceb7e53ff1e41508f6312 (patch)
tree6aa83d94d3ec944aae525157595340ad510ed535 /src/firedns.c
parent40f03790297c269275204df25ff06ff4fe831eae (diff)
parent5a922fa1607be4b15afe18f592c86b175d8b834a (diff)
Update upstream source from tag 'upstream/1.1.10'
Update to upstream version '1.1.10' with Debian dir 0aeb7b4fdd3b9a7ad0330160371926312e64981c
Diffstat (limited to 'src/firedns.c')
-rw-r--r--src/firedns.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/firedns.c b/src/firedns.c
index bcee5da..81bf214 100644
--- a/src/firedns.c
+++ b/src/firedns.c
@@ -43,6 +43,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "list.h"
#include "log.h"
#include "dnsbl.h"
+#include "opm_gettime.h"
#define FIREDNS_TRIES 3
@@ -602,7 +603,7 @@ firedns_send_requests(struct s_header *h, struct s_connection *s, int l)
return -1;
}
- time(&s->start);
+ s->start = opm_gettime();
firedns_fdinuse++;
firedns_errno = FDNS_ERR_NONE;
@@ -799,7 +800,7 @@ firedns_cycle(void)
if (ufds == NULL)
ufds = xcalloc(sizeof(*ufds) * OptionsItem.dns_fdlimit);
- time(&timenow);
+ timenow = opm_gettime();
LIST_FOREACH_SAFE(node, node_next, CONNECTIONS.head)
{