1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 18:07:59 +00:00

Oops - don't invent an X authorisation when doing agent forwarding!

Overenthusiastic c'n'p breaks the world.

[originally from svn r999]
This commit is contained in:
Simon Tatham 2001-03-15 11:32:23 +00:00
parent c760ef6f83
commit 1a9d213a74

1
ssh.c
View File

@ -3458,7 +3458,6 @@ static void do_ssh2_authconn(unsigned char *in, int inlen, int ispkt)
if (cfg.agentfwd && agent_exists()) { if (cfg.agentfwd && agent_exists()) {
char proto[20], data[64]; char proto[20], data[64];
logevent("Requesting OpenSSH-style agent forwarding"); logevent("Requesting OpenSSH-style agent forwarding");
x11_invent_auth(proto, sizeof(proto), data, sizeof(data));
ssh2_pkt_init(SSH2_MSG_CHANNEL_REQUEST); ssh2_pkt_init(SSH2_MSG_CHANNEL_REQUEST);
ssh2_pkt_adduint32(mainchan->remoteid); ssh2_pkt_adduint32(mainchan->remoteid);
ssh2_pkt_addstring("auth-agent-req@openssh.com"); ssh2_pkt_addstring("auth-agent-req@openssh.com");