From 9b1abd734797846ab25e964dc1f17d4a90dccd32 Mon Sep 17 00:00:00 2001 From: jsg Date: Wed, 12 Oct 2022 11:26:05 +0000 Subject: [PATCH] use correct type with sizeof ok miod@ claudio@ tb@ --- usr.sbin/bgpd/rde_rib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/bgpd/rde_rib.c b/usr.sbin/bgpd/rde_rib.c index e256376365a..c4321b94cd9 100644 --- a/usr.sbin/bgpd/rde_rib.c +++ b/usr.sbin/bgpd/rde_rib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_rib.c,v 1.249 2022/09/12 10:03:17 claudio Exp $ */ +/* $OpenBSD: rde_rib.c,v 1.250 2022/10/12 11:26:05 jsg Exp $ */ /* * Copyright (c) 2003, 2004 Claudio Jeker @@ -147,7 +147,7 @@ rib_new(char *name, u_int rtableid, uint16_t flags) if (id >= rib_size) { if ((ribs = recallocarray(ribs, id, id + 8, - sizeof(struct rib))) == NULL) + sizeof(struct rib *))) == NULL) fatal(NULL); rib_size = id + 8; } -- 2.20.1