diff options
Diffstat (limited to 'ssh-agent.c')
-rw-r--r-- | ssh-agent.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ssh-agent.c b/ssh-agent.c index ba8d020ad..41e12acc9 100644 --- a/ssh-agent.c +++ b/ssh-agent.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-agent.c,v 1.196 2015/01/16 06:40:12 deraadt Exp $ */ | 1 | /* $OpenBSD: ssh-agent.c,v 1.197 2015/01/28 22:36:00 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -212,7 +212,8 @@ confirm_key(Identity *id) | |||
212 | int ret = -1; | 212 | int ret = -1; |
213 | 213 | ||
214 | p = sshkey_fingerprint(id->key, fingerprint_hash, SSH_FP_DEFAULT); | 214 | p = sshkey_fingerprint(id->key, fingerprint_hash, SSH_FP_DEFAULT); |
215 | if (ask_permission("Allow use of key %s?\nKey fingerprint %s.", | 215 | if (p != NULL && |
216 | ask_permission("Allow use of key %s?\nKey fingerprint %s.", | ||
216 | id->comment, p)) | 217 | id->comment, p)) |
217 | ret = 0; | 218 | ret = 0; |
218 | free(p); | 219 | free(p); |