diff options
Diffstat (limited to 'serverloop.c')
-rw-r--r-- | serverloop.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/serverloop.c b/serverloop.c index b08fcfd92..311a285c3 100644 --- a/serverloop.c +++ b/serverloop.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include "ssh2.h" | 23 | #include "ssh2.h" |
24 | #include "session.h" | 24 | #include "session.h" |
25 | #include "dispatch.h" | 25 | #include "dispatch.h" |
26 | #include "auth-options.h" | ||
26 | 27 | ||
27 | static Buffer stdin_buffer; /* Buffer for stdin data. */ | 28 | static Buffer stdin_buffer; /* Buffer for stdin data. */ |
28 | static Buffer stdout_buffer; /* Buffer for stdout data. */ | 29 | static Buffer stdout_buffer; /* Buffer for stdout data. */ |
@@ -719,7 +720,13 @@ input_direct_tcpip(void) | |||
719 | 720 | ||
720 | debug("open direct-tcpip: from %s port %d to %s port %d", | 721 | debug("open direct-tcpip: from %s port %d to %s port %d", |
721 | originator, originator_port, target, target_port); | 722 | originator, originator_port, target, target_port); |
723 | |||
722 | /* XXX check permission */ | 724 | /* XXX check permission */ |
725 | if (! no_port_forwarding_flag) { | ||
726 | xfree(target); | ||
727 | xfree(originator); | ||
728 | return -1; | ||
729 | } | ||
723 | sock = channel_connect_to(target, target_port); | 730 | sock = channel_connect_to(target, target_port); |
724 | xfree(target); | 731 | xfree(target); |
725 | xfree(originator); | 732 | xfree(originator); |