commit | d1a3bc91a1e32e9fe31a65abd5f526786cd1ecfe | [log] [tgz] |
---|---|---|
author | Sergey Kandaurov <pluknet@nginx.com> | Mon Feb 06 18:38:06 2017 +0300 |
committer | Sergey Kandaurov <pluknet@nginx.com> | Mon Feb 06 18:38:06 2017 +0300 |
tree | 79e6dbaa57480bf4a0c7dc062eed12a5ff95271b | |
parent | 4ae1b0c39950ead78ee0b277581240502d30bad1 [diff] |
SSL: clear error queue after OPENSSL_init_ssl(). The function may leave error in the error queue while returning success, e.g., when taking a DSO reference to itself as of OpenSSL 1.1.0d: https://git.openssl.org/?p=openssl.git;a=commit;h=4af9f7f Notably, this fixes alert seen with statically linked OpenSSL on some platforms. While here, check OPENSSL_init_ssl() return value.