=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/servconf.c,v retrieving revision 1.386 retrieving revision 1.387 diff -u -r1.386 -r1.387 --- src/usr.bin/ssh/servconf.c 2022/09/17 10:34:29 1.386 +++ src/usr.bin/ssh/servconf.c 2022/11/07 10:02:59 1.387 @@ -1,5 +1,5 @@ -/* $OpenBSD: servconf.c,v 1.386 2022/09/17 10:34:29 djm Exp $ */ +/* $OpenBSD: servconf.c,v 1.387 2022/11/07 10:02:59 dtucker Exp $ */ /* * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland * All rights reserved @@ -1861,6 +1861,10 @@ filename, linenum, keyword); else options->max_startups = options->max_startups_begin; + if (options->max_startups <= 0 || + options->max_startups_begin <= 0) + fatal("%s line %d: Invalid %s spec.", + filename, linenum, keyword); break; case sPerSourceNetBlockSize: