From 46719b892546e1ea8ba449fce3803f65b40e9e71 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Sat, 30 Sep 2017 00:11:59 -0400 Subject: [PATCH] [mod_wstunnel] fix NULL ptr deref fix NULL ptr deref if wstunnel.server configured inside a conditional and not in global scope (thx nicorac) x-ref: "https://redmine.lighttpd.net/boards/2/topics/7600" --- src/mod_wstunnel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mod_wstunnel.c b/src/mod_wstunnel.c index 89cd6a23..c15dac8c 100644 --- a/src/mod_wstunnel.c +++ b/src/mod_wstunnel.c @@ -381,7 +381,9 @@ static void mod_wstunnel_patch_connection(server *srv, connection *con, plugin_d if (buffer_is_equal_string(du->key, CONST_STR_LEN("wstunnel.server"))) { PATCH_GW(exts); - /*PATCH_GW(exts_auth);*//*(wstunnel can not act as authorizer)*/ + /*(wstunnel can not act as authorizer, + * but p->conf.exts_auth must not be NULL)*/ + PATCH_GW(exts_auth); PATCH_GW(exts_resp); } else if (buffer_is_equal_string(du->key, CONST_STR_LEN("wstunnel.debug"))) { PATCH_GW(debug);