=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/servconf.c,v retrieving revision 1.310 retrieving revision 1.311 diff -u -r1.310 -r1.311 --- src/usr.bin/ssh/servconf.c 2017/09/12 06:32:07 1.310 +++ src/usr.bin/ssh/servconf.c 2017/09/18 09:41:52 1.311 @@ -1,5 +1,5 @@ -/* $OpenBSD: servconf.c,v 1.310 2017/09/12 06:32:07 djm Exp $ */ +/* $OpenBSD: servconf.c,v 1.311 2017/09/18 09:41:52 dtucker Exp $ */ /* * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland * All rights reserved @@ -1613,11 +1613,12 @@ filename, linenum); i = options->num_permitted_opens; /* modified later */ if (strcmp(arg, "any") == 0 || strcmp(arg, "none") == 0) { - if (*activep && i == 0) + if (*activep && i == 0) { options->num_permitted_opens = 1; options->permitted_opens = xcalloc(1, sizeof(*options->permitted_opens)); options->permitted_opens[0] = xstrdup(arg); + } break; } for (; arg != NULL && *arg != '\0'; arg = strdelim(&cp)) {