From: Jim Meyering Date: Mon, 17 Aug 2009 08:25:42 +0000 (+0200) Subject: guestfsd: don't ignore failed write-to-socket X-Git-Tag: 1.0.68~38 X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=commitdiff_plain;h=fabf3f661579710d543db46718ec627a53bad61f guestfsd: don't ignore failed write-to-socket * daemon/proto.c (reply): Fix typo that would cause us to ignore failed write-to-socket. --- diff --git a/daemon/proto.c b/daemon/proto.c index 709f978..9b33902 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); }