diff options
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r-- | usr.sbin/bgpd/buffer.c | 4 | ||||
-rw-r--r-- | usr.sbin/bgpd/kroute.c | 8 |
2 files changed, 7 insertions, 5 deletions
diff --git a/usr.sbin/bgpd/buffer.c b/usr.sbin/bgpd/buffer.c index ff001618cda..fc48d49a644 100644 --- a/usr.sbin/bgpd/buffer.c +++ b/usr.sbin/bgpd/buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: buffer.c,v 1.29 2005/03/23 11:36:35 henning Exp $ */ +/* $OpenBSD: buffer.c,v 1.30 2005/03/28 14:40:04 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -185,7 +185,7 @@ msgbuf_write(struct msgbuf *msgbuf) close(buf->fd); buf->fd = -1; } - + for (buf = TAILQ_FIRST(&msgbuf->bufs); buf != NULL && n > 0; buf = next) { next = TAILQ_NEXT(buf, entry); diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c index aa5d3510c55..8b6daef62cb 100644 --- a/usr.sbin/bgpd/kroute.c +++ b/usr.sbin/bgpd/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.118 2005/03/26 23:04:34 claudio Exp $ */ +/* $OpenBSD: kroute.c,v 1.119 2005/03/28 14:40:04 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -398,8 +398,10 @@ kr_show_route(struct imsg *imsg) memcpy(&snh.addr, &h->nexthop, sizeof(snh.addr)); if (h->kroute != NULL) { snh.valid = kroute_validate(&h->kroute->r); - if ((kif = kif_find(h->kroute->r.ifindex)) != NULL) - memcpy(&snh.kif, &kif->k, sizeof(snh.kif)); + if ((kif = kif_find(h->kroute->r.ifindex)) != + NULL) + memcpy(&snh.kif, &kif->k, + sizeof(snh.kif)); } send_imsg_session(IMSG_CTL_SHOW_NEXTHOP, imsg->hdr.pid, &snh, sizeof(snh)); |