[ovs-discuss] [nic19-2 2/5] ovs-brcompatd: Fix use of uninitialized svec.

Ben Pfaff blp at nicira.com
Tue Aug 18 23:08:28 UTC 2009


---
 vswitchd/ovs-brcompatd.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/vswitchd/ovs-brcompatd.c b/vswitchd/ovs-brcompatd.c
index a510f16..b7ef847 100644
--- a/vswitchd/ovs-brcompatd.c
+++ b/vswitchd/ovs-brcompatd.c
@@ -814,6 +814,7 @@ handle_get_bridges_cmd(struct ofpbuf *buffer)
 
     /* Get all the real bridges and all the fake ones. */
     cfg_read();
+    svec_init(&bridges);
     cfg_get_subsections(&bridges, "bridge");
     SVEC_FOR_EACH (i, br_name, &bridges) {
         const char *iface_name;
-- 
1.6.3.3





More information about the discuss mailing list