]> git.kaiwu.me - nginx.git/commit
SSL: separate checks for errors in ngx_ssl_read_password_file().
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 31 Jan 2019 16:36:51 +0000 (19:36 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 31 Jan 2019 16:36:51 +0000 (19:36 +0300)
commitf7d53c4ae4cf126570bc8290773eb84671632aac
treeda45cc084cba06dd2afa994a2de7458c7d99944c
parent80f105b054b6d7da2da8650f763471f27b47a562
SSL: separate checks for errors in ngx_ssl_read_password_file().

Checking multiple errors at once is a bad practice, as in general
it is not guaranteed that an object can be used after the error.
In this particular case, checking errors after multiple allocations
can result in excessive errors being logged when there is no memory
available.
src/event/ngx_event_openssl.c