mirror of
git://anongit.mindrot.org/openssh.git
synced 2025-03-09 16:18:04 +00:00
upstream: sshsig: return "key not found" when searching empty files
rather than "internal error" OpenBSD-Commit-ID: e2ccae554c78d7a7cd33fc5d217f35be7e2507ed
This commit is contained in:
parent
9e3227d4db
commit
8249afeec0
3
sshsig.c
3
sshsig.c
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: sshsig.c,v 1.25 2021/11/28 07:10:18 djm Exp $ */
|
/* $OpenBSD: sshsig.c,v 1.26 2021/11/28 07:21:26 djm Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2019 Google LLC
|
* Copyright (c) 2019 Google LLC
|
||||||
*
|
*
|
||||||
@ -1020,6 +1020,7 @@ sshsig_find_principals(const char *path, const struct sshkey *sign_key,
|
|||||||
return SSH_ERR_SYSTEM_ERROR;
|
return SSH_ERR_SYSTEM_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
r = SSH_ERR_KEY_NOT_FOUND;
|
||||||
while (getline(&line, &linesize, f) != -1) {
|
while (getline(&line, &linesize, f) != -1) {
|
||||||
linenum++;
|
linenum++;
|
||||||
r = check_allowed_keys_line(path, linenum, line,
|
r = check_allowed_keys_line(path, linenum, line,
|
||||||
|
Loading…
Reference in New Issue
Block a user