summaryrefslogtreecommitdiffstats
path: root/proto/rip/config.Y
diff options
context:
space:
mode:
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 a3e877d..c00ecc5 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);
}