summaryrefslogtreecommitdiff
path: root/usr.sbin/rpki-client/rrdp.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2021-10-29 09:27:37 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2021-10-29 09:27:37 +0000
commit81700908c5f0f1c4ef66314824f3e4c5f0c883e4 (patch)
tree56ad197c65e72adea9af0ddfd19685b68366fb5a /usr.sbin/rpki-client/rrdp.c
parentce0488bbaf25f86c7a07bbdffd20f1f37930047d (diff)
Ensure that RRDP snapshot and delta files are fetched from the same host
as the notification file. OK tb@ job@
Diffstat (limited to 'usr.sbin/rpki-client/rrdp.c')
-rw-r--r--usr.sbin/rpki-client/rrdp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/rpki-client/rrdp.c b/usr.sbin/rpki-client/rrdp.c
index 5883d9c2fca..9b338bad16a 100644
--- a/usr.sbin/rpki-client/rrdp.c
+++ b/usr.sbin/rpki-client/rrdp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rrdp.c,v 1.16 2021/10/28 11:57:00 claudio Exp $ */
+/* $OpenBSD: rrdp.c,v 1.17 2021/10/29 09:27:36 claudio Exp $ */
/*
* Copyright (c) 2020 Nils Fisher <nils_fisher@hotmail.com>
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
@@ -208,7 +208,8 @@ rrdp_new(size_t id, char *local, char *notify, char *session_id,
if ((s->parser = XML_ParserCreate("US-ASCII")) == NULL)
err(1, "XML_ParserCreate");
- s->nxml = new_notification_xml(s->parser, &s->repository, &s->current);
+ s->nxml = new_notification_xml(s->parser, &s->repository, &s->current,
+ notify);
TAILQ_INSERT_TAIL(&states, s, entry);