[auth-options.c]
ignore permitopen="host:port" if AllowTcpForwarding==no
- (djm) Seed PRNG at startup, rather than waiting for arc4random calls to
do it implicitly.
- (djm) Add getusershell() functions from OpenBSD CVS
+ - OpenBSD CVS Sync
+ - markus@cvs.openbsd.org 2001/03/18 12:07:52
+ [auth-options.c]
+ ignore permitopen="host:port" if AllowTcpForwarding==no
20010318
- (bal) Fixed scp type casing issue which causes "scp: protocol error:
*/
#include "includes.h"
-RCSID("$OpenBSD: auth-options.c,v 1.15 2001/03/16 19:06:28 markus Exp $");
+RCSID("$OpenBSD: auth-options.c,v 1.16 2001/03/18 12:07:52 markus Exp $");
#include "packet.h"
#include "xmalloc.h"
xfree(patterns);
goto bad_option;
}
- channel_add_permitted_opens(patterns, port);
+ if (options.allow_tcp_forwarding)
+ channel_add_permitted_opens(patterns, port);
xfree(patterns);
goto next_option;
}