summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-02-03 00:11:35 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-02-03 00:11:35 +0000
commit496bf355a6601091a1dbbedd84fa9404d39f76e6 (patch)
tree83e61ff29436108ea0e318c0028e58454ed318a4
parentb4073bcddabc6985631d4c959bdf21949a987787 (diff)
add missing fatal() call in rde_peer_send_rrefresh()
found by "if statement not indented" smatch warning ok claudio@
-rw-r--r--usr.sbin/bgpd/rde.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c
index 0b62f8cc5dc..d36bcb39fae 100644
--- a/usr.sbin/bgpd/rde.c
+++ b/usr.sbin/bgpd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.621 2024/02/02 16:10:33 claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.622 2024/02/03 00:11:34 jsg Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -4273,6 +4273,7 @@ rde_peer_send_rrefresh(struct rde_peer *peer, uint8_t aid, uint8_t subtype)
if (imsg_compose(ibuf_se, IMSG_REFRESH, peer->conf.id, 0, -1,
&rr, sizeof(rr)) == -1)
+ fatal("%s %d imsg_compose error", __func__, __LINE__);
log_peer_info(&peer->conf, "sending %s %s marker",
aid2str(aid), subtype == ROUTE_REFRESH_END_RR ? "EoRR" : "BoRR");