From 4b2e949ab2432a9cad844258d566393b69157e32 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 13 Jan 2009 16:21:37 -0800 Subject: [PATCH] brcompat: Don't try to write the config file if it isn't configured. --- vswitchd/brcompat.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.30.2