diff options
author | Ted Gould <ted@gould.cx> | 2012-08-31 07:43:53 +0000 |
---|---|---|
committer | Tarmac <> | 2012-08-31 07:43:53 +0000 |
commit | 36fd7b03c684909b9b7e8c35bc378df35fc1a368 (patch) | |
tree | d4a05382fb4f8b55a627583d2de9ddc8413034be | |
parent | 0160c961eb0e5a1ead77bf18d75df56aba34022a (diff) | |
parent | da2b0689a4caa0d04ea476f707c47950563c5b16 (diff) | |
download | lightdm-remote-session-x2go-36fd7b03c684909b9b7e8c35bc378df35fc1a368.tar.gz lightdm-remote-session-x2go-36fd7b03c684909b9b7e8c35bc378df35fc1a368.tar.bz2 lightdm-remote-session-x2go-36fd7b03c684909b9b7e8c35bc378df35fc1a368.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; |