There was an error while loading. Please reload this page.
1 parent 7c2411f commit af6f8c0Copy full SHA for af6f8c0
src/ngx_stream_lua_util.c
@@ -1935,6 +1935,10 @@ ngx_stream_lua_req_socket(lua_State *L)
1935
1936
r = ngx_stream_lua_get_req(L);
1937
1938
+ if (r == NULL) {
1939
+ return luaL_error(L, "no request found");
1940
+ }
1941
+
1942
ctx = ngx_stream_lua_get_module_ctx(r, ngx_stream_lua_module);
1943
if (ctx == NULL) {
1944
return luaL_error(L, "no ctx found");
0 commit comments