diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2006-05-17 12:43:35 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2006-05-17 12:43:35 +0000 |
commit | 74f83645bee64fbfd065d8770fc401d66d3772b9 (patch) | |
tree | c56463e518e3edbc00750f206496f13ec525d137 /usr.bin/ssh/ssh-agent.c | |
parent | 85420ecbd457ade5ecba4b741a4d3619f2974764 (diff) |
fix leak; coverity via Kylene Jo Hall
Diffstat (limited to 'usr.bin/ssh/ssh-agent.c')
-rw-r--r-- | usr.bin/ssh/ssh-agent.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-agent.c b/usr.bin/ssh/ssh-agent.c index a774d7be041..37e9feb983b 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.137 2006/03/30 09:58:16 djm Exp $ */ +/* $OpenBSD: ssh-agent.c,v 1.138 2006/05/17 12:43:34 markus Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -307,8 +307,8 @@ process_sign_request2(SocketEntry *e) Identity *id = lookup_identity(key, 2); if (id != NULL && (!id->confirm || confirm_key(id) == 0)) ok = key_sign(id->key, &signature, &slen, data, dlen); + key_free(key); } - key_free(key); buffer_init(&msg); if (ok == 0) { buffer_put_char(&msg, SSH2_AGENT_SIGN_RESPONSE); |