diff options
author | Alex Colomar <a.colomar@f5.com> | 2022-09-10 18:00:27 +0200 |
---|---|---|
committer | Alejandro Colomar <alx@nginx.com> | 2022-10-14 14:43:04 +0200 |
commit | f2213dbd1b51838ec6b59073d9d071a75def7858 (patch) | |
tree | 660015b7d47ea949b63f28afc120e9c09f040536 /src/nxt_openssl.c | |
parent | f8b892e1fa3d6398a21ce5e183911baa11a14d6a (diff) | |
download | unit-f2213dbd1b51838ec6b59073d9d071a75def7858.tar.gz unit-f2213dbd1b51838ec6b59073d9d071a75def7858.tar.bz2 |
Added missing error checking in the C API.
pthread_mutex_init(3) may fail for several reasons, and failing to
check will cause Undefined Behavior when those errors happen. Add
missing checks, and correctly deinitialize previously created
stuff before exiting from the API.
Signed-off-by: Alejandro Colomar <alx@nginx.com>
Reviewed-by: Andrew Clayton <a.clayton@nginx.com>
Reviewed-by: Zhidao HONG <z.hong@f5.com>
Diffstat (limited to 'src/nxt_openssl.c')
0 files changed, 0 insertions, 0 deletions