summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2024-09-09 14:58:48 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2024-09-09 14:58:48 +0000
commit45f00ac230dd46b36b470237be675c93dcc7ba46 (patch)
treefff3e971ad4550996e126dc68fe57d236a7c048c /usr.sbin/bgpd
parentd1288d83cf986bc2886710f0aa0b1acb42404413 (diff)
There is no need for an explicit size check for IMSG_RECONF_ASPA_TAS
imsg_get_data() does the same and produces the same error. OK tb@
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/rde.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c
index 4a284720a1c..a855f27a799 100644
--- a/usr.sbin/bgpd/rde.c
+++ b/usr.sbin/bgpd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.630 2024/09/09 12:59:49 claudio Exp $ */
+/* $OpenBSD: rde.c,v 1.631 2024/09/09 14:58:47 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -1277,8 +1277,6 @@ rde_dispatch_imsg_rtr(struct imsgbuf *imsgbuf)
case IMSG_RECONF_ASPA_TAS:
if (aspa == NULL)
fatalx("unexpected IMSG_RECONF_ASPA_TAS");
- if (imsg_get_len(&imsg) != aspa->num * sizeof(uint32_t))
- fatalx("IMSG_RECONF_ASPA_TAS bad len");
aspa->tas = reallocarray(NULL, aspa->num,
sizeof(uint32_t));
if (aspa->tas == NULL)