summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorSebastian Benoit <benno@cvs.openbsd.org>2019-06-25 21:33:56 +0000
committerSebastian Benoit <benno@cvs.openbsd.org>2019-06-25 21:33:56 +0000
commit17ca3bf231d59f76976401c56e3edb710f3708cf (patch)
tree3fc1bc840bf8fdac9a1d97b27db33ed5e8a40060 /usr.sbin
parent59e17700a3079a5f8a8a5ad666d9dc625a10b64f (diff)
ibuf_write() returns -1 on error.
ok claudio@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpd/mrt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/mrt.c b/usr.sbin/bgpd/mrt.c
index c1d744931b0..9c6dd170b92 100644
--- a/usr.sbin/bgpd/mrt.c
+++ b/usr.sbin/bgpd/mrt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mrt.c,v 1.96 2019/06/24 06:39:49 claudio Exp $ */
+/* $OpenBSD: mrt.c,v 1.97 2019/06/25 21:33:55 benno Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org>
@@ -851,7 +851,7 @@ mrt_write(struct mrt *mrt)
{
int r;
- if ((r = ibuf_write(&mrt->wbuf)) < 0 && errno != EAGAIN) {
+ if ((r = ibuf_write(&mrt->wbuf)) == -1 && errno != EAGAIN) {
log_warn("mrt dump aborted, mrt_write");
mrt_clean(mrt);
mrt_done(mrt);