From 4a99853021ab834691a80a39cda24947d36b8bf8 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 21 Aug 2015 22:50:15 +0900 Subject: [PATCH] nghttpd: Fix crash without SSL/TLS --- src/HttpServer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HttpServer.cc b/src/HttpServer.cc index d4ca9969..491890b4 100644 --- a/src/HttpServer.cc +++ b/src/HttpServer.cc @@ -710,7 +710,7 @@ int Http2Handler::connection_made() { 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); }