This is an automated email from the ASF dual-hosted git repository.

kichan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 05f2822  Add missing checks for request url
05f2822 is described below

commit 05f2822af89c0d828e5aea42be65cf4bbb675a71
Author: Matt Mills <mmi...@2bn.net>
AuthorDate: Fri Aug 4 20:22:29 2017 -0600

    Add missing checks for request url
---
 plugins/experimental/ts_lua/ts_lua_server_request.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/plugins/experimental/ts_lua/ts_lua_server_request.c 
b/plugins/experimental/ts_lua/ts_lua_server_request.c
index d67f894..7ba6995 100644
--- a/plugins/experimental/ts_lua/ts_lua_server_request.c
+++ b/plugins/experimental/ts_lua/ts_lua_server_request.c
@@ -569,6 +569,8 @@ ts_lua_server_request_get_url_host(lua_State *L)
 
   GET_HTTP_CONTEXT(http_ctx, L);
 
+  TS_LUA_CHECK_SERVER_REQUEST_URL(http_ctx);
+
   host = TSUrlHostGet(http_ctx->server_request_bufp, 
http_ctx->server_request_url, &len);
 
   if (len == 0) {
@@ -624,6 +626,7 @@ ts_lua_server_request_get_url_scheme(lua_State *L)
   ts_lua_http_ctx *http_ctx;
 
   GET_HTTP_CONTEXT(http_ctx, L);
+  TS_LUA_CHECK_SERVER_REQUEST_URL(http_ctx);
 
   scheme = TSUrlSchemeGet(http_ctx->server_request_bufp, 
http_ctx->server_request_url, &len);
 
@@ -641,6 +644,7 @@ ts_lua_server_request_set_url_scheme(lua_State *L)
   ts_lua_http_ctx *http_ctx;
 
   GET_HTTP_CONTEXT(http_ctx, L);
+  TS_LUA_CHECK_SERVER_REQUEST_URL(http_ctx);
 
   scheme = luaL_checklstring(L, 1, &len);
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>'].

Reply via email to