comparison cli-agentfwd.c @ 970:0bb16232e7c4

Make keepalive handling more robust, this should now match what OpenSSH does
author Matt Johnston <matt@ucc.asn.au>
date Tue, 19 Aug 2014 23:08:56 +0800
parents 30ab30e46452
children d46e7f613157
comparison
equal deleted inserted replaced
969:939944f0fca9 970:0bb16232e7c4
232 void cli_setup_agent(struct Channel *channel) { 232 void cli_setup_agent(struct Channel *channel) {
233 if (!getenv("SSH_AUTH_SOCK")) { 233 if (!getenv("SSH_AUTH_SOCK")) {
234 return; 234 return;
235 } 235 }
236 236
237 cli_start_send_channel_request(channel, "[email protected]"); 237 start_send_channel_request(channel, "[email protected]");
238 /* Don't want replies */ 238 /* Don't want replies */
239 buf_putbyte(ses.writepayload, 0); 239 buf_putbyte(ses.writepayload, 0);
240 encrypt_packet(); 240 encrypt_packet();
241 } 241 }
242 242