Skip to content

Commit

Permalink
synced with c476307. closes openresty#6.
Browse files Browse the repository at this point in the history
  • Loading branch information
dndx committed Aug 18, 2017
1 parent dfb7b82 commit 889ca55
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ngx_stream_lua_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,13 @@ ngx_stream_lua_create_ctx(ngx_stream_session_t *r)


ctx = ngx_palloc(r->connection->pool, sizeof(ngx_stream_lua_ctx_t));
if (ctx == NULL) {
return NULL;
}

sreq = ngx_stream_lua_create_request(r);

if (ctx == NULL || sreq == NULL) {
if (sreq == NULL) {
return NULL;
}

Expand Down

0 comments on commit 889ca55

Please sign in to comment.