Claudio Jeker([email protected]) on 2021.11.05 15:26:57 +0100: > On Wed, Nov 03, 2021 at 12:58:17PM +0100, Claudio Jeker wrote: > > In one place this is already done but this makes sure we show the bad > > attribute in all cases where a non conforming attribute is found. > > Found another bunch of those non conforming attribute errors. Adjust them > as well. > > OK?
ok > -- > :wq Claudio > > Index: rrdp_notification.c > =================================================================== > RCS file: /cvs/src/usr.sbin/rpki-client/rrdp_notification.c,v > retrieving revision 1.9 > diff -u -p -r1.9 rrdp_notification.c > --- rrdp_notification.c 29 Oct 2021 09:27:36 -0000 1.9 > +++ rrdp_notification.c 5 Nov 2021 14:06:18 -0000 > @@ -141,7 +141,7 @@ start_notification_elem(struct notificat > 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_ > 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 > 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) >
