summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-08-17 10:25:42 +0200
committerJim Meyering <meyering@redhat.com>2009-08-17 11:40:24 +0200
commitfabf3f661579710d543db46718ec627a53bad61f (patch)
tree66fac130a63ba73ff09cd8efc4d00368b42ca34f /daemon
parent82a5f441ccc8286885bcab082560207d50acfefd (diff)
downloadlibguestfs-fabf3f661579710d543db46718ec627a53bad61f.tar.gz
libguestfs-fabf3f661579710d543db46718ec627a53bad61f.tar.xz
libguestfs-fabf3f661579710d543db46718ec627a53bad61f.zip
guestfsd: don't ignore failed write-to-socket
* daemon/proto.c (reply): Fix typo that would cause us to ignore failed write-to-socket.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/proto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/proto.c b/daemon/proto.c
index 709f978f..9b33902f 100644
--- a/daemon/proto.c
+++ b/daemon/proto.c
@@ -288,7 +288,7 @@ reply (xdrproc_t xdrp, char *ret)
fprintf (stderr, "xwrite failed\n");
exit (1);
}
- if (xwrite (sock, buf, len) == len) {
+ if (xwrite (sock, buf, len) == -1) {
fprintf (stderr, "xwrite failed\n");
exit (1);
}