summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/ssh-keygen.c
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2021-07-09 09:55:57 +0000
committerDamien Miller <djm@cvs.openbsd.org>2021-07-09 09:55:57 +0000
commit70d4075db7f87b4d07d3c8c8386616854ef2abe1 (patch)
tree685fc44294ca25b22f33551af0f51a9c44c2fa01 /usr.bin/ssh/ssh-keygen.c
parentf5ad72e36ef9b3578db456cad0b1aeb5edd63fe3 (diff)
silence redundant error message; reported by Fabian Stelzer
Diffstat (limited to 'usr.bin/ssh/ssh-keygen.c')
-rw-r--r--usr.bin/ssh/ssh-keygen.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c
index eedab58da74..a5cd17b57bb 100644
--- a/usr.bin/ssh/ssh-keygen.c
+++ b/usr.bin/ssh/ssh-keygen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keygen.c,v 1.430 2021/07/05 01:16:46 dtucker Exp $ */
+/* $OpenBSD: ssh-keygen.c,v 1.431 2021/07/09 09:55:56 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -2746,7 +2746,8 @@ sig_find_principals(const char *signature, const char *allowed_keys) {
}
if ((r = sshsig_find_principals(allowed_keys, sign_key,
&principals)) != 0) {
- error_fr(r, "sshsig_get_principal");
+ if (r != SSH_ERR_KEY_NOT_FOUND)
+ error_fr(r, "sshsig_find_principal");
goto done;
}
ret = 0;