summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2019-11-18 06:39:37 +0000
committerDamien Miller <djm@cvs.openbsd.org>2019-11-18 06:39:37 +0000
commit7421a8c92627761af0c920d5728afaac8482f49d (patch)
tree784795ebceec7449bbb6c829627676cbf324a4c1 /usr.bin
parent2a707ed42bf5e2d769a4f22c5bb1ba1a76ff17ae (diff)
Fix incorrect error message when key certification fails
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/ssh-keygen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c
index 1d87615d48d..176f209332c 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.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
@@ -1809,7 +1809,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));