Mercurial > dropbear
comparison cli-chansession.c @ 872:a287954a16d6
Fix TRACEs of cli_send_netcat_request
author | Catalin Patulea <cat@vv.carleton.ca> |
---|---|
date | Tue, 03 Dec 2013 00:06:35 +0800 |
parents | aa689d140928 |
children | 5daedffd0769 |
comparison
equal
deleted
inserted
replaced
871:aa689d140928 | 872:a287954a16d6 |
---|---|
398 void cli_send_netcat_request() { | 398 void cli_send_netcat_request() { |
399 | 399 |
400 const unsigned char* source_host = "127.0.0.1"; | 400 const unsigned char* source_host = "127.0.0.1"; |
401 const int source_port = 22; | 401 const int source_port = 22; |
402 | 402 |
403 TRACE(("enter cli_send_netcat_request")) | |
403 cli_opts.wantpty = 0; | 404 cli_opts.wantpty = 0; |
404 | 405 |
405 if (send_msg_channel_open_init(STDIN_FILENO, &cli_chan_netcat) | 406 if (send_msg_channel_open_init(STDIN_FILENO, &cli_chan_netcat) |
406 == DROPBEAR_FAILURE) { | 407 == DROPBEAR_FAILURE) { |
407 dropbear_exit("Couldn't open initial channel"); | 408 dropbear_exit("Couldn't open initial channel"); |
414 /* originator ip - localhost is accurate enough */ | 415 /* originator ip - localhost is accurate enough */ |
415 buf_putstring(ses.writepayload, source_host, strlen(source_host)); | 416 buf_putstring(ses.writepayload, source_host, strlen(source_host)); |
416 buf_putint(ses.writepayload, source_port); | 417 buf_putint(ses.writepayload, source_port); |
417 | 418 |
418 encrypt_packet(); | 419 encrypt_packet(); |
419 TRACE(("leave cli_send_chansess_request")) | 420 TRACE(("leave cli_send_netcat_request")) |
420 } | 421 } |
421 #endif | 422 #endif |
422 | 423 |
423 void cli_send_chansess_request() { | 424 void cli_send_chansess_request() { |
424 | 425 |