diff options
Diffstat (limited to 'usr.sbin/bgpd/rde_rib.c')
-rw-r--r-- | usr.sbin/bgpd/rde_rib.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde_rib.c b/usr.sbin/bgpd/rde_rib.c index 5e0c5d6390c..482f73d139b 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.52 2004/08/05 16:26:56 claudio Exp $ */ +/* $OpenBSD: rde_rib.c,v 1.53 2004/08/05 18:44:19 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> @@ -73,7 +73,8 @@ static void path_free(struct rde_aspath *); struct path_table pathtable; #define PATH_HASH(x) \ - &pathtable.path_hashtbl[aspath_hash((x)) & pathtable.path_hashmask] + &pathtable.path_hashtbl[aspath_hash((x)->data, (x)->len) & \ + pathtable.path_hashmask] void path_init(u_int32_t hashsize) |