From ba615c2b5b251eea264b721a7f24112b8936a63a Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Mon, 31 Jan 2011 12:02:54 -0800 Subject: [PATCH] lib: netdev-vport improperly initialized route-table. netdev-vport unregistered the routing table in its destroy function, but registered it in its init function. This could cause the routing table to be unregistered when it shouldn't have been causing segmentation faults. Bug #4526. --- lib/netdev-vport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/netdev-vport.c b/lib/netdev-vport.c index 436be8c6..4da44da1 100644 --- a/lib/netdev-vport.c +++ b/lib/netdev-vport.c @@ -193,7 +193,6 @@ static int netdev_vport_init(void) { netdev_vport_tnl_iface_init(); - route_table_register(); return 0; } @@ -253,6 +252,7 @@ netdev_vport_create(const struct netdev_class *netdev_class, const char *name, dev->options = options; *netdev_devp = &dev->netdev_dev; + route_table_register(); } else { ofpbuf_delete(options); } -- 2.30.2