From b48af4dd4a4a4031bcd3827f465ead7daf8b0008 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Wed, 30 Dec 2020 07:02:11 +0000 Subject: Use correct IMSG type in fatal message. Also reformat some not so long lines. Bad IMSg name noticed by proctor@ --- usr.sbin/bgpd/rde.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'usr.sbin/bgpd') diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c index 55d4961f086..3b004c14029 100644 --- a/usr.sbin/bgpd/rde.c +++ b/usr.sbin/bgpd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.508 2020/12/29 15:30:34 claudio Exp $ */ +/* $OpenBSD: rde.c,v 1.509 2020/12/30 07:02:10 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -820,15 +820,13 @@ rde_dispatch_imsg_parent(struct imsgbuf *ibuf) last_prefixset = &nconf->rde_roa; break; case IMSG_RECONF_ROA_ITEM: - if (imsg.hdr.len - IMSG_HEADER_SIZE != - sizeof(roa)) - fatalx("IMSG_RECONF_PREFIX_SET_ITEM bad len"); + if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(roa)) + fatalx("IMSG_RECONF_ROA_ITEM bad len"); memcpy(&roa, imsg.data, sizeof(roa)); rv = trie_roa_add(&last_prefixset->th, &roa); break; case IMSG_RECONF_PREFIX_SET_ITEM: - if (imsg.hdr.len - IMSG_HEADER_SIZE != - sizeof(psi)) + if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(psi)) fatalx("IMSG_RECONF_PREFIX_SET_ITEM bad len"); memcpy(&psi, imsg.data, sizeof(psi)); if (last_prefixset == NULL) -- cgit v1.2.3