diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2020-12-30 07:02:11 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2020-12-30 07:02:11 +0000 |
commit | b48af4dd4a4a4031bcd3827f465ead7daf8b0008 (patch) | |
tree | 264e3ee148338890dfc4a2ea19eda57963e1e110 /usr.sbin/bgpd | |
parent | dcd13df5133e2388786a7fd14f371abf79fb9e5b (diff) |
Use correct IMSG type in fatal message. Also reformat some not so long lines.
Bad IMSg name noticed by proctor@
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r-- | usr.sbin/bgpd/rde.c | 10 |
1 files changed, 4 insertions, 6 deletions
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 <henning@openbsd.org> @@ -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) |