diff options
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/channels.c b/channels.c index dc69d8072..dcd75346b 100644 --- a/channels.c +++ b/channels.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: channels.c,v 1.334 2014/07/03 22:33:41 djm Exp $ */ | 1 | /* $OpenBSD: channels.c,v 1.335 2014/07/05 23:11:48 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -3082,6 +3082,9 @@ open_listen_match(ForwardPermission *allowed_open, const char *requestedhost, | |||
3082 | return 0; | 3082 | return 0; |
3083 | if (allowed_open->listen_port != requestedport) | 3083 | if (allowed_open->listen_port != requestedport) |
3084 | return 0; | 3084 | return 0; |
3085 | if (!translate && allowed_open->listen_host == NULL && | ||
3086 | requestedhost == NULL) | ||
3087 | return 1; | ||
3085 | allowed_host = translate ? | 3088 | allowed_host = translate ? |
3086 | channel_rfwd_bind_host(allowed_open->listen_host) : | 3089 | channel_rfwd_bind_host(allowed_open->listen_host) : |
3087 | allowed_open->listen_host; | 3090 | allowed_open->listen_host; |