summaryrefslogtreecommitdiff
path: root/proto/rip/config.Y
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>1999-05-31 19:43:08 +0000
committerPavel Machek <pavel@ucw.cz>1999-05-31 19:43:08 +0000
commit9607536dbf7c50f9c2fc7a670eab51e5c313d10f (patch)
tree3bdb1494d3788c2e4d3a99ada22f572514ec9f60 /proto/rip/config.Y
parent72efa4b6f82222f91b63b9f61bbc88e458096ea7 (diff)
Kill duplicity between rif and rif_patt.
Diffstat (limited to 'proto/rip/config.Y')
-rw-r--r--proto/rip/config.Y4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/rip/config.Y b/proto/rip/config.Y
index a3e877da..c00ecc56 100644
--- a/proto/rip/config.Y
+++ b/proto/rip/config.Y
@@ -93,8 +93,8 @@ CF_CODE
void
rip_dev_add_iface(char *n)
{
- struct rip_patt *k = cfg_alloc(sizeof(struct rip_patt));
-
+ struct rip_patt *k = cfg_allocz(sizeof(struct rip_patt));
+ k->metric = 1;
k->i.pattern = cfg_strdup(n);
add_tail(&RIP_CFG->iface_list, &k->i.n);
}