]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: silence redundant error message; reported by Fabian Stelzer
authordjm@openbsd.org <djm@openbsd.org>
Fri, 9 Jul 2021 09:55:56 +0000 (09:55 +0000)
committerDamien Miller <djm@mindrot.org>
Fri, 9 Jul 2021 09:57:16 +0000 (19:57 +1000)
OpenBSD-Commit-ID: 9349a703016579a60557dafd03af2fe1d44e6aa2

ssh-keygen.c

index 3a05d0c6a1ee8d29a81ef0f2eacfe42fafa3e145..dedf00205665897e886f4f50a489485645ba215d 100644 (file)
@@ -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
@@ -2769,7 +2769,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;