summaryrefslogtreecommitdiff
path: root/canohost.c
diff options
context:
space:
mode:
authordjm <djm>2009-02-14 05:28:21 +0000
committerdjm <djm>2009-02-14 05:28:21 +0000
commit9293abbe5cb50fbb0fc8a29b8b8f6e6c3647a3e0 (patch)
tree967b29bae668965211346d74880b6663ce319340 /canohost.c
parent982555fb9205886ebe17d7145214d54360dbb721 (diff)
downloadopenssh-9293abbe5cb50fbb0fc8a29b8b8f6e6c3647a3e0.tar.gz
- djm@cvs.openbsd.org 2009/02/12 03:00:56
[canohost.c canohost.h channels.c channels.h clientloop.c readconf.c] [readconf.h serverloop.c ssh.c] support remote port forwarding with a zero listen port (-R0:...) to dyamically allocate a listen port at runtime (this is actually specified in rfc4254); bz#1003 ok markus@
Diffstat (limited to 'canohost.c')
-rw-r--r--canohost.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/canohost.c b/canohost.c
index 42011fd0..7138f48d 100644
--- a/canohost.c
+++ b/canohost.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: canohost.c,v 1.63 2008/06/12 00:03:49 dtucker Exp $ */
+/* $OpenBSD: canohost.c,v 1.64 2009/02/12 03:00:56 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -342,7 +342,7 @@ get_remote_name_or_ip(u_int utmp_len, int use_dns)
/* Returns the local/remote port for the socket. */
-static int
+int
get_sock_port(int sock, int local)
{
struct sockaddr_storage from;