diff options
author | 2020-12-30 07:02:10 +0000 | |
---|---|---|
committer | 2020-12-30 07:02:10 +0000 | |
commit | 48e4a81101ab4f4cf7a73e80bff6dd0641f13128 (patch) | |
tree | de189e3dc0413284c97a19c7408ef9f3587a3b9d | |
parent | RB_REMOVE from the correct tree. Dumb copy paste bug introduced by last commit. (diff) | |
download | wireguard-openbsd-48e4a81101ab4f4cf7a73e80bff6dd0641f13128.tar.xz wireguard-openbsd-48e4a81101ab4f4cf7a73e80bff6dd0641f13128.zip |
Use correct IMSG type in fatal message. Also reformat some not so long lines.
Bad IMSg name noticed by proctor@
-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) |