[hotssh] gssh: Return correct value for output stream writes



commit 0ba53c04a223558755642224eaf7aee8174f91d3
Author: Colin Walters <walters verbum org>
Date:   Wed Dec 4 14:21:26 2013 -0500

    gssh: Return correct value for output stream writes

 libgssh/gssh-channel-output-stream.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/libgssh/gssh-channel-output-stream.c b/libgssh/gssh-channel-output-stream.c
index 4beea8d..0d7ac1e 100644
--- a/libgssh/gssh-channel-output-stream.c
+++ b/libgssh/gssh-channel-output-stream.c
@@ -214,11 +214,9 @@ gssh_channel_output_stream_write (GOutputStream  *stream,
   if (self->sync_error)
     {
       g_propagate_error (error, self->sync_error);
-      return FALSE;
+      return -1;
     }
-  return TRUE;
-
-  return ret;
+  return self->sync_bytes_written;
 }
 
 void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]