Github user bgaff commented on a diff in the pull request: https://github.com/apache/trafficserver/pull/357#discussion_r46250788 --- Diff: plugins/experimental/ts_lua/ts_lua_client_request.c --- @@ -332,6 +348,10 @@ ts_lua_client_request_get_pristine_url(lua_State *L) ts_lua_http_ctx *http_ctx; http_ctx = ts_lua_get_http_ctx(L); + if (http_ctx == NULL) { --- End diff -- given that this pattern is literally repeated everywhere, perhaps a macro is in order: ``` #define GET_CONTEXT(ctx, list) \ ctx = ts_lua_get_http_ctx(list); \ if (ctx == NULL) { \ TS_ERROR(...); \ return; \ } ```
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---