summaryrefslogtreecommitdiff
path: root/usr.sbin/rpki-client
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2021-11-05 14:30:54 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2021-11-05 14:30:54 +0000
commit925700305d0a674ecf31fbb39d7525cd7bc2a7f0 (patch)
treec5a051b28c0d3ea2525cd07cbc440e3c9320816d /usr.sbin/rpki-client
parent0f8296c1694422a415872df02a18e2a6416c1e22 (diff)
Show the attribute name like in the other non conforming attribute errors
for snapshost and delta files. OK deraadt@
Diffstat (limited to 'usr.sbin/rpki-client')
-rw-r--r--usr.sbin/rpki-client/rrdp_notification.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/rpki-client/rrdp_notification.c b/usr.sbin/rpki-client/rrdp_notification.c
index 654dbf36ed3..cf1ffbfaf08 100644
--- a/usr.sbin/rpki-client/rrdp_notification.c
+++ b/usr.sbin/rpki-client/rrdp_notification.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rrdp_notification.c,v 1.9 2021/10/29 09:27:36 claudio Exp $ */
+/* $OpenBSD: rrdp_notification.c,v 1.10 2021/11/05 14:30:53 claudio Exp $ */
/*
* Copyright (c) 2020 Nils Fisher <nils_fisher@hotmail.com>
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
@@ -141,7 +141,7 @@ start_notification_elem(struct notification_xml *nxml, const char **attr)
continue;
}
PARSE_FAIL(p, "parse failed - non conforming "
- "attribute found in notification elem");
+ "attribute '%s' found in notification elem", attr[i]);
}
if (!(has_xmlns && nxml->version && nxml->session_id && nxml->serial))
PARSE_FAIL(p, "parse failed - incomplete "
@@ -185,7 +185,7 @@ start_snapshot_elem(struct notification_xml *nxml, const char **attr)
continue;
}
PARSE_FAIL(p, "parse failed - non conforming "
- "attribute found in snapshot elem");
+ "attribute '%s' found in snapshot elem", attr[i]);
}
if (hasUri != 1 || hasHash != 1)
PARSE_FAIL(p, "parse failed - incomplete snapshot attributes");
@@ -239,7 +239,7 @@ start_delta_elem(struct notification_xml *nxml, const char **attr)
continue;
}
PARSE_FAIL(p, "parse failed - non conforming "
- "attribute found in snapshot elem");
+ "attribute '%s' found in snapshot elem", attr[i]);
}
/* Only add to the list if we are relevant */
if (hasUri != 1 || hasHash != 1 || delta_serial == 0)