diff options
author | Jim Meyering <meyering@redhat.com> | 2009-08-17 10:25:42 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-08-17 11:40:24 +0200 |
commit | fabf3f661579710d543db46718ec627a53bad61f (patch) | |
tree | 66fac130a63ba73ff09cd8efc4d00368b42ca34f | |
parent | 82a5f441ccc8286885bcab082560207d50acfefd (diff) | |
download | libguestfs-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.
-rw-r--r-- | daemon/proto.c | 2 |
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); } |