Skip to content

Commit

Permalink
fix: correct buffer event reference in handle_tcp_mux_stream function
Browse files Browse the repository at this point in the history
Signed-off-by: Dengfeng Liu <liudf0716@gmail.com>
  • Loading branch information
liudf0716 committed Nov 13, 2024
1 parent 551c7f1 commit 41b4099
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tcpmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -881,11 +881,7 @@ int handle_tcp_mux_stream(struct tcp_mux_header *tmux_hdr,

// Handle window updates
if (tmux_hdr->type == WINDOW_UPDATE) {
struct bufferevent *bev = pc ?
pc->local_proxy_bev :
get_main_control()->connect_bev;

if (!incr_send_window(bev, tmux_hdr, flags, stream)) {
if (!incr_send_window(bout, tmux_hdr, flags, stream)) {
debug(LOG_ERR, "Protocol error while handling window update");
tcp_mux_send_go_away(bout, PROTO_ERR);
}
Expand Down

0 comments on commit 41b4099

Please sign in to comment.