aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-08-30 17:01:47 -0500
committerTed Gould <ted@gould.cx>2012-08-30 17:01:47 -0500
commit86663e01be19f64adf3e8dd8c03f217c5305fef5 (patch)
treed4a05382fb4f8b55a627583d2de9ddc8413034be
parent357bbd20197f7708ee8a6961f7cb1ed2669d5f1a (diff)
downloadlightdm-remote-session-freerdp2-86663e01be19f64adf3e8dd8c03f217c5305fef5.tar.gz
lightdm-remote-session-freerdp2-86663e01be19f64adf3e8dd8c03f217c5305fef5.tar.bz2
lightdm-remote-session-freerdp2-86663e01be19f64adf3e8dd8c03f217c5305fef5.zip
Also check to ensure we wrote an identical number of bytes in and out. Idea by Albert
-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;