[openssh-commits] [openssh] 04/04: upstream: sshsig: return "key not found" when searching empty files

git+noreply at mindrot.org git+noreply at mindrot.org
Sun Nov 28 18:28:18 AEDT 2021


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit 8249afeec013e557fe7491a72ca3285de03e25b1
Author: djm at openbsd.org <djm at openbsd.org>
Date:   Sun Nov 28 07:21:26 2021 +0000

    upstream: sshsig: return "key not found" when searching empty files
    
    rather than "internal error"
    
    OpenBSD-Commit-ID: e2ccae554c78d7a7cd33fc5d217f35be7e2507ed
---
 sshsig.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sshsig.c b/sshsig.c
index 171e1317..0dbae33a 100644
--- a/sshsig.c
+++ b/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
  *
@@ -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,

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list