diff options
author | 2018-10-26 08:55:36 +0000 | |
---|---|---|
committer | 2018-10-26 08:55:36 +0000 | |
commit | 6209810741f4c4cbf2455edb3d7d8924856c2ef0 (patch) | |
tree | c183d6d8e5e74c6dcc6af7aff9bf8d73d3be94e9 | |
parent | show what went wrong with a unix domain socket, rather than fail silently (diff) | |
download | wireguard-openbsd-6209810741f4c4cbf2455edb3d7d8924856c2ef0.tar.xz wireguard-openbsd-6209810741f4c4cbf2455edb3d7d8924856c2ef0.zip |
Use proper type in sizeof()
OK phessler@
-rw-r--r-- | usr.sbin/bgpd/rde_rib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde_rib.c b/usr.sbin/bgpd/rde_rib.c index 75c4b6122e3..c4caf992379 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.180 2018/10/24 08:26:37 claudio Exp $ */ +/* $OpenBSD: rde_rib.c,v 1.181 2018/10/26 08:55:36 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> @@ -477,7 +477,7 @@ path_init(u_int32_t hashsize) for (hs = 1; hs < hashsize; hs <<= 1) ; - pathtable.path_hashtbl = calloc(hs, sizeof(struct aspath_queue)); + pathtable.path_hashtbl = calloc(hs, sizeof(*pathtable.path_hashtbl)); if (pathtable.path_hashtbl == NULL) fatal("path_init"); |