aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-08-31 07:43:53 +0000
committerTarmac <Unknown>2012-08-31 07:43:53 +0000
commit4f33e98ae5dde9932cbc541b92fc6943d13bc706 (patch)
treed4a05382fb4f8b55a627583d2de9ddc8413034be
parent357bbd20197f7708ee8a6961f7cb1ed2669d5f1a (diff)
parent86663e01be19f64adf3e8dd8c03f217c5305fef5 (diff)
downloadlightdm-remote-session-freerdp2-4f33e98ae5dde9932cbc541b92fc6943d13bc706.tar.gz
lightdm-remote-session-freerdp2-4f33e98ae5dde9932cbc541b92fc6943d13bc706.tar.bz2
lightdm-remote-session-freerdp2-4f33e98ae5dde9932cbc541b92fc6943d13bc706.zip
Check byte count or error. Approved by Albert Astals Cid, jenkins.
-rw-r--r--socket-sucker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/socket-sucker.c b/socket-sucker.c
index 35424a6..8e8ad25 100644
--- a/socket-sucker.c
+++ b/socket-sucker.c
@@ -69,7 +69,7 @@ main (int argc, char * argv[])
close(socket_fd);
- if (in > 0 && out > 0) {
+ if (in > 0 && out > 0 && in == out) {
return 0;
} else {
return -1;