From 2aa8d9642cb60b7c05336b75e6b350ad649866ec Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 30 Sep 2015 23:45:43 +0900 Subject: [PATCH] nghttpx: Fix crash on http2/client proxy mode --- src/shrpx.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shrpx.cc b/src/shrpx.cc index 4a0d3365..68c2c493 100644 --- a/src/shrpx.cc +++ b/src/shrpx.cc @@ -2377,6 +2377,7 @@ int main(int argc, char **argv) { std::vector().swap( mod_config()->downstream_addr_groups); // maybe not necessary? + mod_config()->router = Router(); mod_config()->router.add_route(catch_all.pattern.get(), 1, get_config()->downstream_addr_groups.size()); mod_config()->downstream_addr_groups.push_back(std::move(catch_all));