diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2009-03-29 19:25:50 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2009-03-29 19:25:50 +0000 |
commit | da4d40d6c22707b68be6a4b9db6be84251be45e9 (patch) | |
tree | 76ebb7941a9b6c43b36984a7e8ddd5c6b2c95553 /usr.sbin/ospf6d/rde.h | |
parent | 66f1f2214ce8c2d9ee2fc7bb1d4f7ea55d43c191 (diff) |
Because get_rtr_link() forgot to increment the buffer offset
it was always returning the first link in the LSA, no matter
which link was requested. Fix this bug. Also, decrease the
number of local variables while here, and convert the idx argument
to unsigned int. Adjust one caller to pass an unsigned int,
other callers will be handled in follow-up commits.
ok claudio@
Diffstat (limited to 'usr.sbin/ospf6d/rde.h')
-rw-r--r-- | usr.sbin/ospf6d/rde.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ospf6d/rde.h b/usr.sbin/ospf6d/rde.h index 1e42020c72b..fa26b649198 100644 --- a/usr.sbin/ospf6d/rde.h +++ b/usr.sbin/ospf6d/rde.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.h,v 1.14 2009/03/29 19:18:20 stsp Exp $ */ +/* $OpenBSD: rde.h,v 1.15 2009/03/29 19:25:49 stsp Exp $ */ /* * Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org> @@ -178,7 +178,7 @@ int rt_remove(struct rt_node *); void rt_clear(void); void rt_dump(struct in_addr, pid_t, u_int8_t); -struct lsa_rtr_link *get_rtr_link(struct vertex *, int); +struct lsa_rtr_link *get_rtr_link(struct vertex *, unsigned int); struct lsa_net_link *get_net_link(struct vertex *, int); RB_PROTOTYPE(lsa_tree, vertex, entry, lsa_compare) |