We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4c4328 commit 3cedd2dCopy full SHA for 3cedd2d
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