summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-05-10 08:56:42 +0200
committerPavel Machek <pavel@ucw.cz>2000-05-10 08:56:42 +0200
commit4bfe4e8551722533cc99c776b3b70818ef59bf24 (patch)
treef84b9b62f902e54f4b0374fc83563efb53f5c511
parentc0100454cf37833d23fdb9d24412de659f683c12 (diff)
downloadbird-4bfe4e8551722533cc99c776b3b70818ef59bf24.tar
bird-4bfe4e8551722533cc99c776b3b70818ef59bf24.zip
Fix segfaults by using new ea_get_int.
-rw-r--r--proto/rip/rip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c
index 326cf20..5c90a45 100644
--- a/proto/rip/rip.c
+++ b/proto/rip/rip.c
@@ -733,8 +733,8 @@ rip_store_tmp_attrs(struct rte *rt, struct ea_list *attrs)
{
struct proto *p = rt->attrs->proto;
- rt->u.rip.tag = ea_find(attrs, EA_RIP_TAG)->u.data;
- rt->u.rip.metric = ea_find(attrs, EA_RIP_METRIC)->u.data;
+ rt->u.rip.tag = ea_get_int(attrs, EA_RIP_TAG, 0);
+ rt->u.rip.metric = ea_get_int(attrs, EA_RIP_METRIC, 1);
}
static void