Mercurial > dropbear
comparison cli-tcpfwd.c @ 1250:2bb4c662d1c2
more hard tab
author | Francois Perrad <francois.perrad@gadz.org> |
---|---|
date | Fri, 01 Jan 2016 15:02:09 +0100 |
parents | d058e15ea213 |
children | 52a456a3add0 |
comparison
equal
deleted
inserted
replaced
1249:c6346c63281b | 1250:2bb4c662d1c2 |
---|---|
229 TRACE(("leave setup_remotetcp")) | 229 TRACE(("leave setup_remotetcp")) |
230 } | 230 } |
231 | 231 |
232 static int newtcpforwarded(struct Channel * channel) { | 232 static int newtcpforwarded(struct Channel * channel) { |
233 | 233 |
234 char *origaddr = NULL; | 234 char *origaddr = NULL; |
235 unsigned int origport; | 235 unsigned int origport; |
236 m_list_elem * iter = NULL; | 236 m_list_elem * iter = NULL; |
237 struct TCPFwdEntry *fwd; | 237 struct TCPFwdEntry *fwd; |
238 char portstring[NI_MAXSERV]; | 238 char portstring[NI_MAXSERV]; |
239 int err = SSH_OPEN_ADMINISTRATIVELY_PROHIBITED; | 239 int err = SSH_OPEN_ADMINISTRATIVELY_PROHIBITED; |
265 } | 265 } |
266 | 266 |
267 | 267 |
268 if (iter == NULL) { | 268 if (iter == NULL) { |
269 /* We didn't request forwarding on that port */ | 269 /* We didn't request forwarding on that port */ |
270 cleantext(origaddr); | 270 cleantext(origaddr); |
271 dropbear_log(LOG_INFO, "Server sent unrequested forward from \"%s:%d\"", | 271 dropbear_log(LOG_INFO, "Server sent unrequested forward from \"%s:%d\"", |
272 origaddr, origport); | 272 origaddr, origport); |
273 goto out; | 273 goto out; |
274 } | 274 } |
275 | 275 |