diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-02-02 16:46:17 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2004-02-02 16:46:17 +0000 |
commit | ff672333bf525e2464b4c4c83e1956428ddeee2b (patch) | |
tree | 538c2ffcedd7a4d8ecfa8c42d329c9abc74a6ed9 | |
parent | b1d37c431a953e79ea54c8adff6bc535ac6f44b0 (diff) |
Use correct struct in sizeof for calloc. OK henning@
-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 fe89added44..cdd4b6900b2 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.28 2004/01/27 21:56:21 henning Exp $ */ +/* $OpenBSD: rde_rib.c,v 1.29 2004/02/02 16:46:16 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> @@ -1069,7 +1069,7 @@ nexthop_init(u_long hashsize) for (hs = 1; hs < hashsize; hs <<= 1) ; - nexthoptable.nexthop_hashtbl = calloc(hs, sizeof(struct aspath_head)); + nexthoptable.nexthop_hashtbl = calloc(hs, sizeof(struct nexthop_table)); if (nexthoptable.nexthop_hashtbl == NULL) fatal("nextop_init"); |