summaryrefslogtreecommitdiff
path: root/auth-options.c
diff options
context:
space:
mode:
authordtucker <dtucker>2011-10-02 07:57:35 +0000
committerdtucker <dtucker>2011-10-02 07:57:35 +0000
commitf41bef90243a2a56489b69fac9c7268d17ef8d1e (patch)
treee6d10ce52036168cf523f27e5a318d077fe6968c /auth-options.c
parent9a44f30ed4628f9fd93fe733e6a81e72e78cdc59 (diff)
downloadopenssh-f41bef90243a2a56489b69fac9c7268d17ef8d1e.tar.gz
- dtucker@cvs.openbsd.org 2011/09/23 00:22:04
[channels.c auth-options.c servconf.c channels.h sshd.8] Add wildcard support to PermitOpen, allowing things like "PermitOpen localhost:*". bz #1857, ok djm markus.
Diffstat (limited to 'auth-options.c')
-rw-r--r--auth-options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auth-options.c b/auth-options.c
index eae45cf2..b3c19c1c 100644
--- a/auth-options.c
+++ b/auth-options.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth-options.c,v 1.54 2010/12/24 21:41:48 djm Exp $ */
+/* $OpenBSD: auth-options.c,v 1.55 2011/09/23 00:22:04 dtucker Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -341,7 +341,7 @@ auth_parse_options(struct passwd *pw, char *opts, char *file, u_long linenum)
goto bad_option;
}
host = cleanhostname(host);
- if (p == NULL || (port = a2port(p)) <= 0) {
+ if (p == NULL || (port = permitopen_port(p)) < 0) {
debug("%.100s, line %lu: Bad permitopen port "
"<%.100s>", file, linenum, p ? p : "");
auth_debug_add("%.100s, line %lu: "