artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51ec536
)
sshsig: return "key not found" when searching empty files rather than
author
djm
<djm@openbsd.org>
Sun, 28 Nov 2021 07:21:26 +0000
(07:21 +0000)
committer
djm
<djm@openbsd.org>
Sun, 28 Nov 2021 07:21:26 +0000
(07:21 +0000)
"internal error"
usr.bin/ssh/sshsig.c
patch
|
blob
|
history
diff --git
a/usr.bin/ssh/sshsig.c
b/usr.bin/ssh/sshsig.c
index
2d9f5ca
..
b4abe9d
100644
(file)
--- a/
usr.bin/ssh/sshsig.c
+++ b/
usr.bin/ssh/sshsig.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: sshsig.c,v 1.2
5 2021/11/28 07:10:18
djm Exp $ */
+/* $OpenBSD: sshsig.c,v 1.2
6 2021/11/28 07:21:26
djm Exp $ */
/*
* Copyright (c) 2019 Google LLC
*
@@
-1018,6
+1018,7
@@
sshsig_find_principals(const char *path, const struct sshkey *sign_key,
return SSH_ERR_SYSTEM_ERROR;
}
+ r = SSH_ERR_KEY_NOT_FOUND;
while (getline(&line, &linesize, f) != -1) {
linenum++;
r = check_allowed_keys_line(path, linenum, line,