aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-09-14 23:19:11 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2009-09-14 23:19:11 +0200
commitca978a9e8182b80ce88b93e173142f21e3efc50c (patch)
tree2e48c34cf0221ce5537c1a24b547d6fd13282bdb /libssh
parentffca268bee7be749eab6643348ce58584abfca5b (diff)
parent6a3d31acb7af06b72b1c81d53f7f3cf7ff7ba9f1 (diff)
downloadlibssh-ca978a9e8182b80ce88b93e173142f21e3efc50c.tar.gz
libssh-ca978a9e8182b80ce88b93e173142f21e3efc50c.tar.xz
libssh-ca978a9e8182b80ce88b93e173142f21e3efc50c.zip
Merge branch 'master' of git://git.libssh.org/projects/libssh/libssh
Diffstat (limited to 'libssh')
-rw-r--r--libssh/agent.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libssh/agent.c b/libssh/agent.c
index ca5de97d..3a8954eb 100644
--- a/libssh/agent.c
+++ b/libssh/agent.c
@@ -210,10 +210,7 @@ static int agent_talk(struct ssh_session_struct *session,
/* send length and then the request packet */
if (atomicio(session->agent->sock, payload, 4, 0) == 4) {
- buffer_get_data(request, payload, len);
- ssh_log(session, SSH_LOG_PACKET,
- "agent_talk - sending request, payload[0] = %u", payload[0]);
- if (atomicio(session->agent->sock, payload, len, 0)
+ if (atomicio(session->agent->sock, buffer_get_rest(request), len, 0)
!= len) {
ssh_log(session, SSH_LOG_PACKET, "atomicio sending request failed: %s",
strerror(errno));