summaryrefslogtreecommitdiff
path: root/usr.sbin/rpki-client/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/rpki-client/main.c')
-rw-r--r--usr.sbin/rpki-client/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rpki-client/main.c b/usr.sbin/rpki-client/main.c
index c74bb69642e..13325062999 100644
--- a/usr.sbin/rpki-client/main.c
+++ b/usr.sbin/rpki-client/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.270 2024/11/13 12:51:04 tb Exp $ */
+/* $OpenBSD: main.c,v 1.271 2024/11/14 10:28:59 tb Exp $ */
/*
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -500,7 +500,7 @@ queue_add_from_cert(const struct cert *cert)
if (strncmp(cert->repo, RSYNC_PROTO, RSYNC_PROTO_LEN) != 0)
errx(1, "unexpected protocol");
- host = cert->repo + 8;
+ host = cert->repo + RSYNC_PROTO_LEN;
LIST_FOREACH(le, &skiplist, entry) {
if (strncasecmp(host, le->fqdn, strcspn(host, "/")) == 0) {