summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2021-11-25 15:03:05 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2021-11-25 15:03:05 +0000
commit299d2dc9db84094c2e8352f8162732716d517d1b (patch)
tree8683b16234203d5e6edfda218e333a1e8c68ac8d /usr.sbin
parentfb14fc055f092e4c2e2e9427c47820c74c4409a8 (diff)
Initialize the repo_timeout to timeout / 4 at start of main().
OK job@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/rpki-client/main.c5
1 files 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 <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -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)