aboutsummaryrefslogtreecommitdiff
path: root/libssh/agent.c
diff options
context:
space:
mode:
authormilo <milo.sshiva@gmail.com>2009-07-28 18:01:07 +0200
committerAndreas Schneider <mail@cynapses.org>2009-08-07 11:38:18 +0200
commit74eff86a6bb54e9c44eae5bbb6d3b396a9f18a85 (patch)
tree646ab1241803eba56191983969ee1da58372bed6 /libssh/agent.c
parent232aca896906112e7e0e3206f4ec4835c5ad306a (diff)
downloadlibssh-74eff86a6bb54e9c44eae5bbb6d3b396a9f18a85.tar.gz
libssh-74eff86a6bb54e9c44eae5bbb6d3b396a9f18a85.tar.xz
libssh-74eff86a6bb54e9c44eae5bbb6d3b396a9f18a85.zip
Fix possible memory corruption (#14)
Signed-off-by: Andreas Schneider <mail@cynapses.org>
Diffstat (limited to 'libssh/agent.c')
-rw-r--r--libssh/agent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/agent.c b/libssh/agent.c
index 3f5edb41..d4b4a1b3 100644
--- a/libssh/agent.c
+++ b/libssh/agent.c
@@ -327,7 +327,7 @@ int agent_get_ident_count(struct ssh_session *session) {
}
if (session->agent->ident) {
- buffer_free(session->agent->ident);
+ buffer_reinit(session->agent->ident);
}
session->agent->ident = reply;