in-band: Make in_band_create() always initialize its output argument.
authorBen Pfaff <blp@nicira.com>
Tue, 2 Nov 2010 23:20:36 +0000 (16:20 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 5 Nov 2010 17:20:02 +0000 (10:20 -0700)
This isn't a bug fix but it seems like a good thing to do.

ofproto/in-band.c

index 639f9f55a16397f9b2891dcbf40d21ebea4cba19..efc9c8acc27d6e8d58fbe49e484042280b63e405 100644 (file)
@@ -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) {