Small bug fix in memcpy.
This commit is contained in:
parent
4c5e5e3a1c
commit
b31568a516
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ ospf_if_notify(struct proto *p, unsigned flags, struct iface *new, struct iface
|
||||||
debug(" OSPF: using interface %s.\n", new->name);
|
debug(" OSPF: using interface %s.\n", new->name);
|
||||||
/* FIXME: Latter I'll use config - this is incorrect */
|
/* FIXME: Latter I'll use config - this is incorrect */
|
||||||
ifa=mb_alloc(p->pool, sizeof(struct ospf_iface));
|
ifa=mb_alloc(p->pool, sizeof(struct ospf_iface));
|
||||||
memcpy(ifa, new, sizeof(struct ospf_iface));
|
memcpy(ifa, new, sizeof(struct iface));
|
||||||
add_tail(&((struct proto_ospf *)p)->iface_list, NODE ifa);
|
add_tail(&((struct proto_ospf *)p)->iface_list, NODE ifa);
|
||||||
ospf_iface_default(ifa);
|
ospf_iface_default(ifa);
|
||||||
add_wait_timer(ifa,p->pool,0);
|
add_wait_timer(ifa,p->pool,0);
|
||||||
|
|
Loading…
Reference in a new issue