comparison cli-chansession.c @ 1318:10e2a7727253 coverity

merge coverity
author Matt Johnston <matt@ucc.asn.au>
date Fri, 22 Jul 2016 00:08:02 +0800
parents 750ec4ec4cbe
children 06d52bcb8094
comparison
equal deleted inserted replaced
1286:7d02b83c61fd 1318:10e2a7727253
353 353
354 static int cli_initchansess(struct Channel *channel) { 354 static int cli_initchansess(struct Channel *channel) {
355 355
356 cli_init_stdpipe_sess(channel); 356 cli_init_stdpipe_sess(channel);
357 357
358 #ifdef ENABLE_CLI_AGENTFWD 358 #if DROPBEAR_CLI_AGENTFWD
359 if (cli_opts.agent_fwd) { 359 if (cli_opts.agent_fwd) {
360 cli_setup_agent(channel); 360 cli_setup_agent(channel);
361 } 361 }
362 #endif 362 #endif
363 363
377 } 377 }
378 378
379 return 0; /* Success */ 379 return 0; /* Success */
380 } 380 }
381 381
382 #ifdef ENABLE_CLI_NETCAT 382 #if DROPBEAR_CLI_NETCAT
383 383
384 static const struct ChanType cli_chan_netcat = { 384 static const struct ChanType cli_chan_netcat = {
385 0, /* sepfds */ 385 0, /* sepfds */
386 "direct-tcpip", 386 "direct-tcpip",
387 cli_init_netcat, /* inithandler */ 387 cli_init_netcat, /* inithandler */