Skip to content

Commit

Permalink
Fix spurious EOF in agent forwarding!
Browse files Browse the repository at this point in the history
Commit 6a8b9d3, which created the Channel vtable and moved the agent
forwarding implementation of it out into agentf.c, managed to set the
rcvd_eof flag to TRUE in agentf_new(), meaning that we behave exactly
as if the first agent request was followed by an incoming EOF.
  • Loading branch information
sgtatham committed Sep 24, 2018
1 parent d77b95c commit 56bf65e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agentf.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Channel *agentf_new(SshChannel *c)
af->c = c;
af->chan.vt = &agentf_channelvt;
af->chan.initial_fixed_window_size = 0;
af->rcvd_eof = TRUE;
af->rcvd_eof = FALSE;
bufchain_init(&af->inbuffer);
af->pending = NULL;
af->input_wanted = TRUE;
Expand Down

0 comments on commit 56bf65e

Please sign in to comment.