RSA_private_{en,de}crypt() can fail and will return -1 in that case.
authorclaudio <claudio@openbsd.org>
Mon, 1 Jan 2018 15:01:09 +0000 (15:01 +0000)
committerclaudio <claudio@openbsd.org>
Mon, 1 Jan 2018 15:01:09 +0000 (15:01 +0000)
commite45fc33a388415f383ca77878c8264efadee75ce
tree0411609855b03e500a692c973be4ddfeab89d748
parentb78ce64398a1a3d001d4761e18bf2879d2f0ce62
RSA_private_{en,de}crypt() can fail and will return -1 in that case.
Check for this in the ca process and return a valid answer to the
relay process. This fixes rsae_send_imsg poll timeouts blocking relay
processes as seen by Mischa Peters and myself.
OK benno@
usr.sbin/relayd/ca.c