summaryrefslogtreecommitdiff
path: root/servconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'servconf.c')
-rw-r--r--servconf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/servconf.c b/servconf.c
index 83b634976..872ff4a87 100644
--- a/servconf.c
+++ b/servconf.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: servconf.c,v 1.166 2006/12/13 08:34:39 dtucker Exp $ */ 1/* $OpenBSD: servconf.c,v 1.167 2006/12/14 10:01:14 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
@@ -1220,14 +1220,14 @@ parse_flag:
1220 if (!arg || *arg == '\0') 1220 if (!arg || *arg == '\0')
1221 fatal("%s line %d: missing PermitOpen specification", 1221 fatal("%s line %d: missing PermitOpen specification",
1222 filename, linenum); 1222 filename, linenum);
1223 n = options->num_permitted_opens; /* modified later */
1223 if (strcmp(arg, "any") == 0) { 1224 if (strcmp(arg, "any") == 0) {
1224 if (*activep) { 1225 if (*activep && n == -1) {
1225 channel_clear_adm_permitted_opens(); 1226 channel_clear_adm_permitted_opens();
1226 options->num_permitted_opens = 0; 1227 options->num_permitted_opens = 0;
1227 } 1228 }
1228 break; 1229 break;
1229 } 1230 }
1230 n = options->num_permitted_opens; /* modified later */
1231 if (*activep && n == -1) 1231 if (*activep && n == -1)
1232 channel_clear_adm_permitted_opens(); 1232 channel_clear_adm_permitted_opens();
1233 for (; arg != NULL && *arg != '\0'; arg = strdelim(&cp)) { 1233 for (; arg != NULL && *arg != '\0'; arg = strdelim(&cp)) {