diff options
Diffstat (limited to 'ssh-agent.c')
-rw-r--r-- | ssh-agent.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ssh-agent.c b/ssh-agent.c index 4669b679c..4d7ab225f 100644 --- a/ssh-agent.c +++ b/ssh-agent.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-agent.c,v 1.235 2019/06/14 03:51:47 djm Exp $ */ | 1 | /* $OpenBSD: ssh-agent.c,v 1.236 2019/06/21 04:21:04 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 |
@@ -423,7 +423,10 @@ process_add_identity(SocketEntry *e) | |||
423 | error("%s: decode private key: %s", __func__, ssh_err(r)); | 423 | error("%s: decode private key: %s", __func__, ssh_err(r)); |
424 | goto err; | 424 | goto err; |
425 | } | 425 | } |
426 | 426 | if ((r = sshkey_shield_private(k)) != 0) { | |
427 | error("%s: shield private key: %s", __func__, ssh_err(r)); | ||
428 | goto err; | ||
429 | } | ||
427 | while (sshbuf_len(e->request)) { | 430 | while (sshbuf_len(e->request)) { |
428 | if ((r = sshbuf_get_u8(e->request, &ctype)) != 0) { | 431 | if ((r = sshbuf_get_u8(e->request, &ctype)) != 0) { |
429 | error("%s: buffer error: %s", __func__, ssh_err(r)); | 432 | error("%s: buffer error: %s", __func__, ssh_err(r)); |