comparison cli-main.c @ 1046:b8f4b7027191 coverity

merge
author Matt Johnston <matt@ucc.asn.au>
date Tue, 24 Feb 2015 22:48:34 +0800
parents 4121ca987e6a
children 02baa0b334e8
comparison
equal deleted inserted replaced
1014:37c510c2ac7c 1046:b8f4b7027191
70 cli_proxy_cmd(&sock_in, &sock_out); 70 cli_proxy_cmd(&sock_in, &sock_out);
71 m_free(cli_opts.proxycmd); 71 m_free(cli_opts.proxycmd);
72 } else 72 } else
73 #endif 73 #endif
74 { 74 {
75 int sock = connect_remote(cli_opts.remotehost, cli_opts.remoteport, 75 int sock = connect_remote(cli_opts.remotehost, cli_opts.remoteport, &error);
76 0, &error);
77 sock_in = sock_out = sock; 76 sock_in = sock_out = sock;
78 } 77 }
79 78
80 if (sock_in < 0) { 79 if (sock_in < 0) {
81 dropbear_exit("%s", error); 80 dropbear_exit("%s", error);