diff options
author | tb <> | 2023-05-05 14:05:33 +0000 |
---|---|---|
committer | tb <> | 2023-05-05 14:05:33 +0000 |
commit | 3f6684ef99f4b237e9f27aff6c9cbd5ec55f5939 (patch) | |
tree | 62f72dc86b9dd5426b96b7010a8bf96d9e5401c5 /src/lib/libcrypto/crypto_init.c | |
parent | 8ea4c2a512bf29a8ba458782be6c1306906080ec (diff) | |
download | openbsd-3f6684ef99f4b237e9f27aff6c9cbd5ec55f5939.tar.gz openbsd-3f6684ef99f4b237e9f27aff6c9cbd5ec55f5939.tar.bz2 openbsd-3f6684ef99f4b237e9f27aff6c9cbd5ec55f5939.zip |
Fix error handling in tls_check_common_name()
A calloc failure should be a fatal error, so make it return -1.
Also switch the default rv to -1 and distinguish error cases with
acceptable situations with goto err/goto done.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/crypto_init.c')
0 files changed, 0 insertions, 0 deletions