diff options
author | Ted Gould <ted@gould.cx> | 2012-08-30 17:01:47 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2012-08-30 17:01:47 -0500 |
commit | da2b0689a4caa0d04ea476f707c47950563c5b16 (patch) | |
tree | d4a05382fb4f8b55a627583d2de9ddc8413034be | |
parent | 0160c961eb0e5a1ead77bf18d75df56aba34022a (diff) | |
download | lightdm-remote-session-x2go-da2b0689a4caa0d04ea476f707c47950563c5b16.tar.gz lightdm-remote-session-x2go-da2b0689a4caa0d04ea476f707c47950563c5b16.tar.bz2 lightdm-remote-session-x2go-da2b0689a4caa0d04ea476f707c47950563c5b16.zip |
Also check to ensure we wrote an identical number of bytes in and out. Idea by Albert
-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; |