Skip to content

Commit

Permalink
fix: ngx_stream_upstream_t peer
Browse files Browse the repository at this point in the history
  • Loading branch information
ytlm committed Jun 27, 2024
1 parent 593bf42 commit 71a6443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ngx_stream_lua_balancer.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ ngx_stream_lua_ffi_balancer_set_proxy_bind(ngx_stream_lua_request_t *r,
}

u = r->session->upstream;
if (u == NULL || u->peer == NULL) {
if (u == NULL) {
*err = "no upstream found";
return NGX_ERROR;
}
Expand Down

0 comments on commit 71a6443

Please sign in to comment.