summaryrefslogtreecommitdiffstats
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-06 10:29:36 +0200
commit1b9676a0cc28e5dab6cea5ffe7c9fcd0fa10d9d8 (patch)
tree695104dd824160af03c02826f0e370ec524d0204 /libssh/agent.c
parentf4b3ef7604eac4a564159879ee2a5edb04a2c223 (diff)
downloadlibssh-1b9676a0cc28e5dab6cea5ffe7c9fcd0fa10d9d8.tar.gz
libssh-1b9676a0cc28e5dab6cea5ffe7c9fcd0fa10d9d8.tar.xz
libssh-1b9676a0cc28e5dab6cea5ffe7c9fcd0fa10d9d8.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 e6fe85f8..ca5de97d 100644
--- a/libssh/agent.c
+++ b/libssh/agent.c
@@ -327,7 +327,7 @@ int agent_get_ident_count(struct ssh_session_struct *session) {
}
if (session->agent->ident) {
- buffer_free(session->agent->ident);
+ buffer_reinit(session->agent->ident);
}
session->agent->ident = reply;