artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52f1a3c
)
use correct type with sizeof
author
jsg
<jsg@openbsd.org>
Wed, 12 Oct 2022 11:26:05 +0000
(11:26 +0000)
committer
jsg
<jsg@openbsd.org>
Wed, 12 Oct 2022 11:26:05 +0000
(11:26 +0000)
ok miod@ claudio@ tb@
usr.sbin/bgpd/rde_rib.c
patch
|
blob
|
history
diff --git
a/usr.sbin/bgpd/rde_rib.c
b/usr.sbin/bgpd/rde_rib.c
index
e256376
..
c4321b9
100644
(file)
--- a/
usr.sbin/bgpd/rde_rib.c
+++ b/
usr.sbin/bgpd/rde_rib.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: rde_rib.c,v 1.2
49 2022/09/12 10:03:17 claudio
Exp $ */
+/* $OpenBSD: rde_rib.c,v 1.2
50 2022/10/12 11:26:05 jsg
Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org>
@@
-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;
}