summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-agent.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2001-07-04 23:13:09 +0000
committermarkus <markus@openbsd.org>2001-07-04 23:13:09 +0000
commit51848a323d605c799cbdf4900d05be923d7e8c7b (patch)
tree1e9532d8fdef33649b1e3bd7ba20a9a9a5b92f93 /usr.bin/ssh/ssh-agent.c
parentmatch time definition with include file, volatile included. (diff)
downloadwireguard-openbsd-51848a323d605c799cbdf4900d05be923d7e8c7b.tar.xz
wireguard-openbsd-51848a323d605c799cbdf4900d05be923d7e8c7b.zip
handle card removal more gracefully, add sc_close() to scard.h
Diffstat (limited to 'usr.bin/ssh/ssh-agent.c')
-rw-r--r--usr.bin/ssh/ssh-agent.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-agent.c b/usr.bin/ssh/ssh-agent.c
index 405eca3d69c..7f3325f63e3 100644
--- a/usr.bin/ssh/ssh-agent.c
+++ b/usr.bin/ssh/ssh-agent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-agent.c,v 1.61 2001/07/04 22:47:19 markus Exp $ */
+/* $OpenBSD: ssh-agent.c,v 1.62 2001/07/04 23:13:10 markus Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -36,7 +36,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh-agent.c,v 1.61 2001/07/04 22:47:19 markus Exp $");
+RCSID("$OpenBSD: ssh-agent.c,v 1.62 2001/07/04 23:13:10 markus Exp $");
#include <openssl/evp.h>
#include <openssl/md5.h>
@@ -532,6 +532,7 @@ process_remove_smartcard_key(SocketEntry *e)
success = 1;
}
key_free(k);
+ sc_close();
}
buffer_put_int(&e->output, 1);