writeordie() was buggy; delete the == 1 which makes no sense.

This commit is contained in:
Nicholas J. Kain 2014-04-06 06:31:40 -04:00
parent 3d76fbeedc
commit c03be059f5

View File

@ -71,7 +71,7 @@ gid_t ifch_gid = 0;
static void writeordie(int fd, const char *buf, size_t len)
{
ssize_t r = safe_write(fd, buf, len) == -1;
ssize_t r = safe_write(fd, buf, len);
if (r < 0 || (size_t)r != len)
suicide("%s: (%s) write failed: %d", client_config.interface,
__func__, r);