upstream: Fix incorrect error message for "too many known hosts files."

bz#3149, patch from jjelen at redhat.com.

OpenBSD-Commit-ID: e0fcb07ed5cf7fd54ce340471a747c24454235e5
This commit is contained in:
dtucker@openbsd.org 2020-04-24 03:33:21 +00:00 committed by Darren Tucker
parent 3beb7276e7
commit 2c1690115a

View File

@ -1,4 +1,4 @@
/* $OpenBSD: readconf.c,v 1.328 2020/04/03 03:12:11 dtucker Exp $ */
/* $OpenBSD: readconf.c,v 1.329 2020/04/24 03:33:21 dtucker Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@ -1175,7 +1175,7 @@ parse_char_array:
while ((arg = strdelim(&s)) != NULL && *arg != '\0') {
if ((*uintptr) >= max_entries)
fatal("%s line %d: "
"too many authorized keys files.",
"too many known hosts files.",
filename, linenum);
cpptr[(*uintptr)++] = xstrdup(arg);
}