]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fix segfaults by using new ea_get_int.
authorPavel Machek <pavel@ucw.cz>
Wed, 10 May 2000 06:56:42 +0000 (06:56 +0000)
committerPavel Machek <pavel@ucw.cz>
Wed, 10 May 2000 06:56:42 +0000 (06:56 +0000)
proto/rip/rip.c

index 326cf202557bb21d0ce922f6b13cbb3dd0de49c0..5c90a4595d01c2235d202d0941f55e73dd057b72 100644 (file)
@@ -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