]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: Fix incorrect error message when key certification fails
authordjm@openbsd.org <djm@openbsd.org>
Mon, 18 Nov 2019 06:39:36 +0000 (06:39 +0000)
committerDamien Miller <djm@mindrot.org>
Mon, 18 Nov 2019 06:42:11 +0000 (17:42 +1100)
OpenBSD-Commit-ID: 7771bd77ee73f7116df37c734c41192943a73cee

ssh-keygen.c

index d95415fb2b2a57600cc706dcc10bedfaca87aa91..356168fb71c6d2a00fc61fcbde2bf599955ad195 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-keygen.c,v 1.366 2019/11/18 06:24:17 djm Exp $ */
+/* $OpenBSD: ssh-keygen.c,v 1.367 2019/11/18 06:39:36 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1830,7 +1830,7 @@ do_ca_sign(struct passwd *pw, const char *ca_key_path, int prefer_agent,
                                fatal("Couldn't certify key %s via agent: %s",
                                    tmp, ssh_err(r));
                } else {
-                       if ((sshkey_certify(public, ca, key_type_name,
+                       if ((r = sshkey_certify(public, ca, key_type_name,
                            sk_provider)) != 0)
                                fatal("Couldn't certify key %s: %s",
                                    tmp, ssh_err(r));