]> git.kaiwu.me - nginx.git/commit
SSL: clear error queue after OPENSSL_init_ssl().
authorSergey Kandaurov <pluknet@nginx.com>
Mon, 6 Feb 2017 15:38:06 +0000 (18:38 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Mon, 6 Feb 2017 15:38:06 +0000 (18:38 +0300)
commit9af7dc2b44acb388f27e492ddc82116d082d02ab
tree79e6dbaa57480bf4a0c7dc062eed12a5ff95271b
parent4abafc85d612f3348c38e5294124f27a2e4681df
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.
src/event/ngx_event_openssl.c