From: Pavel Machek Date: Wed, 10 May 2000 06:56:42 +0000 (+0000) Subject: Fix segfaults by using new ea_get_int. X-Git-Tag: v1.2.0~958 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bfe4e8551722533cc99c776b3b70818ef59bf24;p=thirdparty%2Fbird.git Fix segfaults by using new ea_get_int. --- diff --git a/proto/rip/rip.c b/proto/rip/rip.c index 326cf2025..5c90a4595 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