comparison cli-session.c @ 1733:d529a52b2f7c coverity coverity

merge coverity from main
author Matt Johnston <matt@ucc.asn.au>
date Fri, 26 Jun 2020 21:07:34 +0800
parents 83d48276885b
children d1b279aa5ed1
comparison
equal deleted inserted replaced
1643:b59623a64678 1733:d529a52b2f7c
79 #else 79 #else
80 /* For keepalive */ 80 /* For keepalive */
81 {SSH_MSG_REQUEST_SUCCESS, ignore_recv_response}, 81 {SSH_MSG_REQUEST_SUCCESS, ignore_recv_response},
82 {SSH_MSG_REQUEST_FAILURE, ignore_recv_response}, 82 {SSH_MSG_REQUEST_FAILURE, ignore_recv_response},
83 #endif 83 #endif
84 {SSH_MSG_EXT_INFO, recv_msg_ext_info},
84 {0, NULL} /* End */ 85 {0, NULL} /* End */
85 }; 86 };
86 87
87 static const struct ChanType *cli_chantypes[] = { 88 static const struct ChanType *cli_chantypes[] = {
88 #if DROPBEAR_CLI_REMOTETCPFWD 89 #if DROPBEAR_CLI_REMOTETCPFWD
350 (void)fcntl(cli_ses.stdincopy, F_SETFL, cli_ses.stdinflags); 351 (void)fcntl(cli_ses.stdincopy, F_SETFL, cli_ses.stdinflags);
351 (void)fcntl(cli_ses.stdoutcopy, F_SETFL, cli_ses.stdoutflags); 352 (void)fcntl(cli_ses.stdoutcopy, F_SETFL, cli_ses.stdoutflags);
352 (void)fcntl(cli_ses.stderrcopy, F_SETFL, cli_ses.stderrflags); 353 (void)fcntl(cli_ses.stderrcopy, F_SETFL, cli_ses.stderrflags);
353 354
354 cli_tty_cleanup(); 355 cli_tty_cleanup();
355 356 if (cli_ses.server_sig_algs) {
357 buf_free(cli_ses.server_sig_algs);
358 }
356 } 359 }
357 360
358 static void cli_finished() { 361 static void cli_finished() {
359 TRACE(("cli_finised()")) 362 TRACE(("cli_finished()"))
360 363
361 session_cleanup(); 364 session_cleanup();
362 fprintf(stderr, "Connection to %s@%s:%s closed.\n", cli_opts.username, 365 fprintf(stderr, "Connection to %s@%s:%s closed.\n", cli_opts.username,
363 cli_opts.remotehost, cli_opts.remoteport); 366 cli_opts.remotehost, cli_opts.remoteport);
364 exit(cli_ses.retval); 367 exit(cli_ses.retval);