Fix segfaults by using new ea_get_int.
This commit is contained in:
parent
c0100454cf
commit
4bfe4e8551
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue