diff options
author | Ted Gould <ted@gould.cx> | 2012-08-31 07:43:53 +0000 |
---|---|---|
committer | Tarmac <Unknown> | 2012-08-31 07:43:53 +0000 |
commit | 4f33e98ae5dde9932cbc541b92fc6943d13bc706 (patch) | |
tree | d4a05382fb4f8b55a627583d2de9ddc8413034be | |
parent | 357bbd20197f7708ee8a6961f7cb1ed2669d5f1a (diff) | |
parent | 86663e01be19f64adf3e8dd8c03f217c5305fef5 (diff) | |
download | lightdm-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.c | 2 |
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; |