Fix segfaults by using new ea_get_int.

This commit is contained in:
Pavel Machek 2000-05-10 06:56:42 +00:00
parent c0100454cf
commit 4bfe4e8551

View file

@ -733,8 +733,8 @@ rip_store_tmp_attrs(struct rte *rt, struct ea_list *attrs)
{ {
struct proto *p = rt->attrs->proto; struct proto *p = rt->attrs->proto;
rt->u.rip.tag = ea_find(attrs, EA_RIP_TAG)->u.data; rt->u.rip.tag = ea_get_int(attrs, EA_RIP_TAG, 0);
rt->u.rip.metric = ea_find(attrs, EA_RIP_METRIC)->u.data; rt->u.rip.metric = ea_get_int(attrs, EA_RIP_METRIC, 1);
} }
static void static void