Rework tls_check_subject_altname() error handling
authortb <tb@openbsd.org>
Thu, 1 Jun 2023 07:32:25 +0000 (07:32 +0000)
committertb <tb@openbsd.org>
Thu, 1 Jun 2023 07:32:25 +0000 (07:32 +0000)
commit6adcb85d7e505db4fc82e77b5145f5958398bfbc
treee382352d2ffb46f3a657f7120424cd039ada0165
parentc25290f5d726ab77ee4cb0e52dcfaced44a2b795
Rework tls_check_subject_altname() error handling

Default to having rv = -1 and explicitly goto done to set rv = 0.
This matches other code better.

ok jsing
lib/libtls/tls_verify.c