brcompat: Don't try to write the config file if it isn't configured.
authorBen Pfaff <blp@nicira.com>
Wed, 14 Jan 2009 00:21:37 +0000 (16:21 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 14 Jan 2009 00:21:37 +0000 (16:21 -0800)
vswitchd/brcompat.c

index 6dd5743f749ab6cf94521dccabfdbda0d280e3fa..a6c25cf9dd11d9ef1875d86a2fc177a8d6c496a9 100644 (file)
@@ -210,6 +210,10 @@ brc_modify_config(const char *dp_name, const char *port_name,
     size_t i, j;
     int n_ports = -1;
 
+    if (!config_name) {
+        return;
+    }
+
     svec_init(&new_cfg);
     svec_init(&old_br);
     svec_init(&old_keys);