aboutsummaryrefslogtreecommitdiff
path: root/src/agent.c
diff options
context:
space:
mode:
authorSanne Raymaekers <sraymaek@redhat.com>2018-10-25 18:38:32 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-10-25 18:49:29 +0200
commitced05eb6dbbd9a20f0b96a454203a8d158157123 (patch)
tree684ea99d98350a51ea1fae679b234802fc70c213 /src/agent.c
parentb796924fea7e61a4a8813acce9e510f2359aee34 (diff)
downloadlibssh-ced05eb6dbbd9a20f0b96a454203a8d158157123.tar.gz
libssh-ced05eb6dbbd9a20f0b96a454203a8d158157123.tar.xz
libssh-ced05eb6dbbd9a20f0b96a454203a8d158157123.zip
socket: Undouble socket fds
Signed-off-by: Sanne Raymaekers <sraymaek@redhat.com>
Diffstat (limited to 'src/agent.c')
-rw-r--r--src/agent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/agent.c b/src/agent.c
index d1ea5c08..78be33e6 100644
--- a/src/agent.c
+++ b/src/agent.c
@@ -73,7 +73,7 @@ static size_t atomicio(struct ssh_agent_struct *agent, void *buf, size_t n, int
/* Using a socket ? */
if (channel == NULL) {
- fd = ssh_socket_get_fd_in(agent->sock);
+ fd = ssh_socket_get_fd(agent->sock);
pfd.fd = fd;
pfd.events = do_read ? POLLIN : POLLOUT;