Do not accept empty delta elements
authortb <tb@openbsd.org>
Tue, 26 Dec 2023 11:03:27 +0000 (11:03 +0000)
committertb <tb@openbsd.org>
Tue, 26 Dec 2023 11:03:27 +0000 (11:03 +0000)
commitc35859a16eb51f3afbb583ca4d4ada78af2f7550
tree8422b8ba0f31eec2b41bfcc19e1a185e76be4218
parent27b7e82d3c68ed8d8fae9faeb047b72e0d53eb1c
Do not accept empty delta elements

Ties de Kock found RRDP content that doesn't match the XML schema, most
likely generated by krill: https://github.com/NLnetLabs/krill/issues/1180

Use the state machine to mark a new delta element as empty and check at
the end whether that state was changed (which means it contained publish
or withdraw elements). If so, raise a parse failure.

ok claudio job
usr.sbin/rpki-client/rrdp_delta.c