nghttpd: Fix crash without SSL/TLS
This commit is contained in:
parent
176411aada
commit
4a99853021
|
@ -710,7 +710,7 @@ int Http2Handler::connection_made() {
|
||||||
|
|
||||||
ev_timer_start(sessions_->get_loop(), &settings_timerev_);
|
ev_timer_start(sessions_->get_loop(), &settings_timerev_);
|
||||||
|
|
||||||
if (!nghttp2::ssl::check_http2_requirement(ssl_)) {
|
if (ssl_ && !nghttp2::ssl::check_http2_requirement(ssl_)) {
|
||||||
terminate_session(NGHTTP2_INADEQUATE_SECURITY);
|
terminate_session(NGHTTP2_INADEQUATE_SECURITY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue