summaryrefslogtreecommitdiff
path: root/usr.sbin/dvmrpd/rde.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2014-07-12 19:22:33 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2014-07-12 19:22:33 +0000
commit42045ed13e9b3a3fca5821fa85b8c8d209de5cdb (patch)
tree32c329966f79d297e8a777f6b3e50ddf097d3a3b /usr.sbin/dvmrpd/rde.c
parent89420b8689f35e9c7996d717998a0e5e13e4fb5d (diff)
msgbuf_write() <= 0 for a few more daemons.
ok claudio@
Diffstat (limited to 'usr.sbin/dvmrpd/rde.c')
-rw-r--r--usr.sbin/dvmrpd/rde.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/dvmrpd/rde.c b/usr.sbin/dvmrpd/rde.c
index 5fe56d6e81e..8add327c20b 100644
--- a/usr.sbin/dvmrpd/rde.c
+++ b/usr.sbin/dvmrpd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.23 2013/11/26 11:32:31 henning Exp $ */
+/* $OpenBSD: rde.c,v 1.24 2014/07/12 19:22:32 krw Exp $ */
/*
* Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org>
@@ -209,7 +209,7 @@ rde_dispatch_imsg(int fd, short event, void *bula)
fatalx("pipe closed");
}
if (event & EV_WRITE) {
- if (msgbuf_write(&ibuf->w) == -1 && errno != EAGAIN)
+ if (msgbuf_write(&ibuf->w) <= 0 && errno != EAGAIN)
fatal("msgbuf_write");
}