You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ki...@apache.org on 2017/08/05 16:50:43 UTC
[trafficserver] branch master updated (395a742 -> a0aca6f)
This is an automated email from the ASF dual-hosted git repository.
kichan pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git.
from 395a742 Doc: Add documentation for MIME header plugin API functions.
new 84bc7ab Add null pointer check to server response set status
new a0aca6f Fix clang-format
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
plugins/experimental/ts_lua/ts_lua_server_response.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
--
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].
[trafficserver] 02/02: Fix clang-format
Posted by ki...@apache.org.
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
commit a0aca6f911445ed3492177cbb24b5ee50bfa39e1
Author: Matt Mills <mm...@2bn.net>
AuthorDate: Fri Aug 4 21:00:46 2017 -0600
Fix clang-format
---
plugins/experimental/ts_lua/ts_lua_server_response.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/experimental/ts_lua/ts_lua_server_response.c b/plugins/experimental/ts_lua/ts_lua_server_response.c
index 14501c6..107c9b4 100644
--- a/plugins/experimental/ts_lua/ts_lua_server_response.c
+++ b/plugins/experimental/ts_lua/ts_lua_server_response.c
@@ -301,9 +301,9 @@ ts_lua_server_response_set_status(lua_State *L)
status = luaL_checkint(L, 1);
- reason = TSHttpHdrReasonLookup(status);
+ reason = TSHttpHdrReasonLookup(status);
if (reason) {
- reason_len = strlen(reason);
+ reason_len = strlen(reason);
}
TSHttpHdrStatusSet(http_ctx->server_response_bufp, http_ctx->server_response_hdrp, status);
--
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.
[trafficserver] 01/02: Add null pointer check to server response
set status
Posted by ki...@apache.org.
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
commit 84bc7ab86a020c1ff418014ac65da9f0483deafc
Author: Matt Mills <mm...@2bn.net>
AuthorDate: Fri Aug 4 20:44:37 2017 -0600
Add null pointer check to server response set status
---
plugins/experimental/ts_lua/ts_lua_server_response.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/plugins/experimental/ts_lua/ts_lua_server_response.c b/plugins/experimental/ts_lua/ts_lua_server_response.c
index d3e5338..14501c6 100644
--- a/plugins/experimental/ts_lua/ts_lua_server_response.c
+++ b/plugins/experimental/ts_lua/ts_lua_server_response.c
@@ -291,7 +291,7 @@ ts_lua_server_response_set_status(lua_State *L)
{
int status;
const char *reason;
- int reason_len;
+ int reason_len = 0;
ts_lua_http_ctx *http_ctx;
@@ -302,7 +302,9 @@ ts_lua_server_response_set_status(lua_State *L)
status = luaL_checkint(L, 1);
reason = TSHttpHdrReasonLookup(status);
- reason_len = strlen(reason);
+ if (reason) {
+ reason_len = strlen(reason);
+ }
TSHttpHdrStatusSet(http_ctx->server_response_bufp, http_ctx->server_response_hdrp, status);
TSHttpHdrReasonSet(http_ctx->server_response_bufp, http_ctx->server_response_hdrp, reason, reason_len);
--
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.