lua-nginx-module
lua-nginx-module copied to clipboard
bugfix: a segmentation fault might occur when SSL renegotiation happens
Please see #1354 for more details.
Since it is tough to distinguish whether current connection is upgraded to HTTP/2 in the ngx_http_lua_ssl_cert_handler context. This PR just returns 0 (marks failed) when SSL renegotiation happens. Nginx already prohibited the SSL renegotiation, so it is safe.
I hereby granted the copyright of the changes in this pull request to the authors of this lua-nginx-module project.