From: claudio Date: Mon, 9 Sep 2024 14:58:47 +0000 (+0000) Subject: There is no need for an explicit size check for IMSG_RECONF_ASPA_TAS X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=173da11705f1e7484faccc75a3a93737c57e758a;p=openbsd 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@ --- 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 @@ -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)