[ovs-dev] [manager-options 4/5] in-band: Make in_band_create() always initialize its output argument.

Ben Pfaff blp at nicira.com
Wed Nov 3 17:39:55 UTC 2010


This isn't a bug fix but it seems like a good thing to do.
---
 ofproto/in-band.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ofproto/in-band.c b/ofproto/in-band.c
index 639f9f5..efc9c8a 100644
--- a/ofproto/in-band.c
+++ b/ofproto/in-band.c
@@ -768,6 +768,7 @@ in_band_create(struct ofproto *ofproto, struct dpif *dpif,
     struct netdev *local_netdev;
     int error;
 
+    *in_bandp = NULL;
     error = dpif_port_get_name(dpif, ODPP_LOCAL,
                                local_name, sizeof local_name);
     if (error) {
-- 
1.7.1





More information about the dev mailing list