aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-11-27 20:16:09 +0100
committerAndreas Schneider <asn@cryptomilk.org>2013-11-27 22:53:53 +0100
commit73e1f2691f15c805d1df1ab71a90a026c33a1a4e (patch)
tree0adfe3d2d9da1b5b27b7ee4726c80341b30cbca7 /examples
parent84e29f9c0609aded96ad99c9dff875214c8e4cd1 (diff)
downloadlibssh-73e1f2691f15c805d1df1ab71a90a026c33a1a4e.tar.gz
libssh-73e1f2691f15c805d1df1ab71a90a026c33a1a4e.tar.xz
libssh-73e1f2691f15c805d1df1ab71a90a026c33a1a4e.zip
examples: Fix else branch.
CID #1127816
Diffstat (limited to 'examples')
-rw-r--r--examples/sshnetcat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/sshnetcat.c b/examples/sshnetcat.c
index 052cabf4..67bb1ad6 100644
--- a/examples/sshnetcat.c
+++ b/examples/sshnetcat.c
@@ -143,13 +143,14 @@ static void select_loop(ssh_session session,ssh_channel channel){
if(lus==0){
channel_free(channel);
channel=channels[0]=NULL;
- } else
+ } else {
ret = write(2, buffer, lus);
if (ret < 0) {
fprintf(stderr, "Error writing to stderr: %s",
strerror(errno));
return;
}
+ }
}
}
if(channel && channel_is_closed(channel)){