From 4aefc49552e88a10359379b4b2560711c410d81b Mon Sep 17 00:00:00 2001 From: claudio Date: Thu, 25 Nov 2021 15:03:04 +0000 Subject: [PATCH] Initialize the repo_timeout to timeout / 4 at start of main(). OK job@ --- usr.sbin/rpki-client/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.sbin/rpki-client/main.c b/usr.sbin/rpki-client/main.c index 3fba29ef0dc..59edfc543c3 100644 --- a/usr.sbin/rpki-client/main.c +++ b/usr.sbin/rpki-client/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.166 2021/11/25 14:03:40 job Exp $ */ +/* $OpenBSD: main.c,v 1.167 2021/11/25 15:03:04 claudio Exp $ */ /* * Copyright (c) 2021 Claudio Jeker * Copyright (c) 2019 Kristaps Dzonsons @@ -68,7 +68,7 @@ const char *bird_tablename = "ROAS"; int verbose; int noop; int rrdpon = 1; -int repo_timeout = 15*60; +int repo_timeout; struct stats stats; @@ -709,6 +709,7 @@ main(int argc, char *argv[]) } cachedir = RPKI_PATH_BASE_DIR; outputdir = RPKI_PATH_OUT_DIR; + repo_timeout = timeout / 4; if (pledge("stdio rpath wpath cpath inet fattr dns sendfd recvfd " "proc exec unveil", NULL) == -1) -- 2.20.1