summaryrefslogtreecommitdiff
path: root/servconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'servconf.c')
-rw-r--r--servconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/servconf.c b/servconf.c
index 1911ac540..5b3f6f50b 100644
--- a/servconf.c
+++ b/servconf.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: servconf.c,v 1.222 2011/06/22 21:57:01 djm Exp $ */ 1/* $OpenBSD: servconf.c,v 1.223 2011/09/23 00:22:04 dtucker Exp $ */
2/* 2/*
3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4 * All rights reserved 4 * All rights reserved
@@ -1387,7 +1387,7 @@ process_server_config_line(ServerOptions *options, char *line,
1387 fatal("%s line %d: missing host in PermitOpen", 1387 fatal("%s line %d: missing host in PermitOpen",
1388 filename, linenum); 1388 filename, linenum);
1389 p = cleanhostname(p); 1389 p = cleanhostname(p);
1390 if (arg == NULL || (port = a2port(arg)) <= 0) 1390 if (arg == NULL || ((port = permitopen_port(arg)) < 0))
1391 fatal("%s line %d: bad port number in " 1391 fatal("%s line %d: bad port number in "
1392 "PermitOpen", filename, linenum); 1392 "PermitOpen", filename, linenum);
1393 if (*activep && n == -1) 1393 if (*activep && n == -1)