summaryrefslogtreecommitdiff
path: root/auth-options.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-03-19 00:13:46 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-03-19 00:13:46 +0000
commit2d70f98220c8aaac29ac6fb47b86750209dacb01 (patch)
treeb690b0a49a4501defe50232b524a392927ef0de0 /auth-options.c
parent9de61e8c596e1f7e52f780dd87bde2df779b1237 (diff)
- markus@cvs.openbsd.org 2001/03/18 12:07:52
[auth-options.c] ignore permitopen="host:port" if AllowTcpForwarding==no
Diffstat (limited to 'auth-options.c')
-rw-r--r--auth-options.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/auth-options.c b/auth-options.c
index 7ce1e4b0c..443f5414a 100644
--- a/auth-options.c
+++ b/auth-options.c
@@ -10,7 +10,7 @@
10 */ 10 */
11 11
12#include "includes.h" 12#include "includes.h"
13RCSID("$OpenBSD: auth-options.c,v 1.15 2001/03/16 19:06:28 markus Exp $"); 13RCSID("$OpenBSD: auth-options.c,v 1.16 2001/03/18 12:07:52 markus Exp $");
14 14
15#include "packet.h" 15#include "packet.h"
16#include "xmalloc.h" 16#include "xmalloc.h"
@@ -268,7 +268,8 @@ auth_parse_options(struct passwd *pw, char *opts, char *file, u_long linenum)
268 xfree(patterns); 268 xfree(patterns);
269 goto bad_option; 269 goto bad_option;
270 } 270 }
271 channel_add_permitted_opens(patterns, port); 271 if (options.allow_tcp_forwarding)
272 channel_add_permitted_opens(patterns, port);
272 xfree(patterns); 273 xfree(patterns);
273 goto next_option; 274 goto next_option;
274 } 275 }