Call rrdp_data_handler() for any kind of poll event that has happened.
authorclaudio <claudio@openbsd.org>
Thu, 15 Apr 2021 13:31:30 +0000 (13:31 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 15 Apr 2021 13:31:30 +0000 (13:31 +0000)
commitc494faa752f03fcc4d3ff5a9f58af96903174ba3
tree08e2d53559c4a2ef87a66bc9180699abcc2a1a5c
parent3580e8406b2d605d1d0f75347f30262aaa05f331
Call rrdp_data_handler() for any kind of poll event that has happened.
On OpenBSD closing a connection will result in a read even (POLLIN) while
on Linux POLLHUP is returned. rrdp_data_handler()'s read() call returns
in both cases 0 and finishes the XML parsing.
Found and fix tested by job@, OK deraadt@
usr.sbin/rpki-client/rrdp.c