nghttpd: Fix crash without SSL/TLS

This commit is contained in:
Tatsuhiro Tsujikawa 2015-08-21 22:50:15 +09:00
parent 176411aada
commit 4a99853021
1 changed files with 1 additions and 1 deletions

View File

@ -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);
} }