Skip to content

Commit

Permalink
upstream: sshsig: return "key not found" when searching empty files
Browse files Browse the repository at this point in the history
rather than "internal error"

OpenBSD-Commit-ID: e2ccae554c78d7a7cd33fc5d217f35be7e2507ed
  • Loading branch information
djmdjm committed Nov 28, 2021
1 parent 9e3227d commit 8249afe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sshsig.c
Original file line number Diff line number Diff line change
@@ -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
*
Expand Down Expand Up @@ -1020,6 +1020,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,
Expand Down

0 comments on commit 8249afe

Please sign in to comment.