comparison cli-tcpfwd.c @ 1641:a2bbc22ea1e6 coverity

merge coverity
author Matt Johnston <matt@ucc.asn.au>
date Thu, 21 Mar 2019 00:14:38 +0800
parents 79eef94ccea9
children 9026f976eee8
comparison
equal deleted inserted replaced
1610:96e4c9b2cc00 1641:a2bbc22ea1e6
36 36
37 const struct ChanType cli_chan_tcpremote = { 37 const struct ChanType cli_chan_tcpremote = {
38 1, /* sepfds */ 38 1, /* sepfds */
39 "forwarded-tcpip", 39 "forwarded-tcpip",
40 newtcpforwarded, 40 newtcpforwarded,
41 NULL,
41 NULL, 42 NULL,
42 NULL, 43 NULL,
43 NULL 44 NULL
44 }; 45 };
45 #endif 46 #endif
51 unsigned int remoteport); 52 unsigned int remoteport);
52 static const struct ChanType cli_chan_tcplocal = { 53 static const struct ChanType cli_chan_tcplocal = {
53 1, /* sepfds */ 54 1, /* sepfds */
54 "direct-tcpip", 55 "direct-tcpip",
55 tcp_prio_inithandler, 56 tcp_prio_inithandler,
57 NULL,
56 NULL, 58 NULL,
57 NULL, 59 NULL,
58 NULL 60 NULL
59 }; 61 };
60 #endif 62 #endif
133 tcpinfo->listenport = listenport; 135 tcpinfo->listenport = listenport;
134 136
135 tcpinfo->chantype = &cli_chan_tcplocal; 137 tcpinfo->chantype = &cli_chan_tcplocal;
136 tcpinfo->tcp_type = direct; 138 tcpinfo->tcp_type = direct;
137 139
138 ret = listen_tcpfwd(tcpinfo); 140 ret = listen_tcpfwd(tcpinfo, NULL);
139 141
140 if (ret == DROPBEAR_FAILURE) { 142 if (ret == DROPBEAR_FAILURE) {
141 m_free(tcpinfo); 143 m_free(tcpinfo);
142 } 144 }
143 TRACE(("leave cli_localtcp: %d", ret)) 145 TRACE(("leave cli_localtcp: %d", ret))