aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
Diffstat (limited to 'libssh')
-rw-r--r--libssh/channels.c2
-rw-r--r--libssh/server.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/libssh/channels.c b/libssh/channels.c
index a87d338a..31586314 100644
--- a/libssh/channels.c
+++ b/libssh/channels.c
@@ -674,6 +674,8 @@ int channel_poll(CHANNEL *channel, int is_stderr){
} else
return 0; /* nothing is available has said fd_poll */
}
+ if(channel->remote_eof)
+ return 1;
return buffer_get_len(buffer);
}
diff --git a/libssh/server.c b/libssh/server.c
index 31bae3ba..0f429852 100644
--- a/libssh/server.c
+++ b/libssh/server.c
@@ -27,6 +27,7 @@ MA 02111-1307, USA. */
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
+#include <netinet/in.h>
#include <netdb.h>
#include <errno.h>
#include <string.h>