From b4709b9e8c5cbd5b98271613158cd9965bdf45e6 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 5 Sep 2015 01:20:32 +0900 Subject: [PATCH] nghttpx: Fix crash without mruby script --- src/shrpx_mruby.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shrpx_mruby.cc b/src/shrpx_mruby.cc index 79ba148a..aadca674 100644 --- a/src/shrpx_mruby.cc +++ b/src/shrpx_mruby.cc @@ -101,6 +101,9 @@ int MRubyContext::run_on_response_proc(Downstream *downstream) { } void MRubyContext::delete_downstream(Downstream *downstream) { + if (!mrb_) { + return; + } delete_downstream_from_module(mrb_, downstream); }