From: Ben Pfaff Date: Wed, 14 Jan 2009 00:21:37 +0000 (-0800) Subject: brcompat: Don't try to write the config file if it isn't configured. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b2e949ab2432a9cad844258d566393b69157e32;p=openvswitch brcompat: Don't try to write the config file if it isn't configured. --- diff --git a/vswitchd/brcompat.c b/vswitchd/brcompat.c index 6dd5743f..a6c25cf9 100644 --- a/vswitchd/brcompat.c +++ b/vswitchd/brcompat.c @@ -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);