aboutsummaryrefslogtreecommitdiff
path: root/examples/sshnetcat.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-09-27 15:52:28 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-10-24 09:48:35 +0200
commit12ec1fed2f236eae8f4de3c17781b4da4bac0fcb (patch)
tree1432f4b1900a7b7934c180048b8315b561b1ea34 /examples/sshnetcat.c
parentfb70d0fb41ac51d6d8e4a4de23b3cc72beae1329 (diff)
downloadlibssh-12ec1fed2f236eae8f4de3c17781b4da4bac0fcb.tar.gz
libssh-12ec1fed2f236eae8f4de3c17781b4da4bac0fcb.tar.xz
libssh-12ec1fed2f236eae8f4de3c17781b4da4bac0fcb.zip
examples: Zero fds in sshnetcat
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'examples/sshnetcat.c')
-rw-r--r--examples/sshnetcat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/sshnetcat.c b/examples/sshnetcat.c
index 28fb2765..ccc72c86 100644
--- a/examples/sshnetcat.c
+++ b/examples/sshnetcat.c
@@ -90,6 +90,7 @@ static void select_loop(ssh_session session,ssh_channel channel){
do{
int fd;
+ ZERO_STRUCT(fds);
FD_ZERO(&fds);
if(!eof)
FD_SET(0,&fds);