]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Small bug fix in memcpy.
authorOndrej Filip <feela@network.cz>
Wed, 14 Apr 1999 12:47:18 +0000 (12:47 +0000)
committerOndrej Filip <feela@network.cz>
Wed, 14 Apr 1999 12:47:18 +0000 (12:47 +0000)
proto/ospf/ospf.c

index c0dc2da3fee04f5790ef7b2bfc38703bbce20cb0..6008eebe786229e33cf46e0d1c867b90faef66d8 100644 (file)
@@ -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);
     /* FIXME: Latter I'll use config - this is incorrect */
     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);
     ospf_iface_default(ifa);
     add_wait_timer(ifa,p->pool,0);