summaryrefslogtreecommitdiff
path: root/ssh-keysign.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-keysign.c')
-rw-r--r--ssh-keysign.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ssh-keysign.c b/ssh-keysign.c
index 222327ef1..bcf897a05 100644
--- a/ssh-keysign.c
+++ b/ssh-keysign.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-keysign.c,v 1.46 2015/01/15 09:40:00 djm Exp $ */ 1/* $OpenBSD: ssh-keysign.c,v 1.47 2015/01/28 22:36:00 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2002 Markus Friedl. All rights reserved. 3 * Copyright (c) 2002 Markus Friedl. All rights reserved.
4 * 4 *
@@ -274,8 +274,9 @@ main(int argc, char **argv)
274 } 274 }
275 } 275 }
276 if (!found) { 276 if (!found) {
277 fp = sshkey_fingerprint(key, options.fingerprint_hash, 277 if ((fp = sshkey_fingerprint(key, options.fingerprint_hash,
278 SSH_FP_DEFAULT); 278 SSH_FP_DEFAULT)) == NULL)
279 fatal("%s: sshkey_fingerprint failed", __func__);
279 fatal("no matching hostkey found for key %s %s", 280 fatal("no matching hostkey found for key %s %s",
280 sshkey_type(key), fp ? fp : ""); 281 sshkey_type(key), fp ? fp : "");
281 } 282 }