summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2017-09-30 00:11:59 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2017-09-30 00:11:59 -0400
commit46719b892546e1ea8ba449fce3803f65b40e9e71 (patch)
tree0c267c7f6d8b1d9a54e2df0139a4b60a2e3bccac
parenta156fdbc7bb00f1ead9df41038062efd7b829105 (diff)
downloadlighttpd1.4-46719b892546e1ea8ba449fce3803f65b40e9e71.tar.gz
lighttpd1.4-46719b892546e1ea8ba449fce3803f65b40e9e71.zip
[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"
-rw-r--r--src/mod_wstunnel.c4
1 files changed, 3 insertions, 1 deletions
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);