You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by so...@apache.org on 2017/08/13 18:41:32 UTC
[trafficserver] branch 6.2.x updated (0d3b5dd -> c265867)
This is an automated email from the ASF dual-hosted git repository.
sorber pushed a change to branch 6.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git.
from 0d3b5dd Add missing checks for request url
new d97cb17 Add null pointer check to server response set status
new c265867 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 so...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
sorber pushed a commit to branch 6.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit c2658677a27702c54bbb0c8f25a659c9e61a47d6
Author: Matt Mills <mm...@2bn.net>
AuthorDate: Fri Aug 4 21:00:46 2017 -0600
Fix clang-format
(cherry picked from commit a0aca6f911445ed3492177cbb24b5ee50bfa39e1)
---
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 7c87342..3210b72 100644
--- a/plugins/experimental/ts_lua/ts_lua_server_response.c
+++ b/plugins/experimental/ts_lua/ts_lua_server_response.c
@@ -253,9 +253,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 so...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
sorber pushed a commit to branch 6.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit d97cb17a8c5e84a07550b78d7c53d224686bcdf7
Author: Matt Mills <mm...@2bn.net>
AuthorDate: Fri Aug 4 20:44:37 2017 -0600
Add null pointer check to server response set status
(cherry picked from commit 84bc7ab86a020c1ff418014ac65da9f0483deafc)
---
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 c4abd41..7c87342 100644
--- a/plugins/experimental/ts_lua/ts_lua_server_response.c
+++ b/plugins/experimental/ts_lua/ts_lua_server_response.c
@@ -243,7 +243,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;
@@ -254,7 +254,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>.