Do not assign the return value from asprintf (int) to a size_t and then
authorclaudio <claudio@openbsd.org>
Thu, 18 Mar 2021 14:08:01 +0000 (14:08 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 18 Mar 2021 14:08:01 +0000 (14:08 +0000)
commit5d2a5cd687f41a7c526553b2238200dce3ffba8b
tree5a6d9f126122e1c8a866ad9c040ff44db5a5314f
parent38177ce4b3deb096bcdc5d19d27a75f6acc08470
Do not assign the return value from asprintf (int) to a size_t and then
compare it to -1. Instead use a temp variable and assign to bufsz after
the -1 check.
Also add errx() calls after the switch statements in the FSM functions.
OK job@ tb@
usr.sbin/rpki-client/http.c