]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
nwfilter: Add missing goto err_exit in error path
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Wed, 12 Mar 2014 14:35:13 +0000 (10:35 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Wed, 12 Mar 2014 14:35:13 +0000 (10:35 -0400)
https://bugzilla.redhat.com/show_bug.cgi?id=1071095

Add a missing goto err_exit in the error path where an unsupported
value is assigned to the CTRL_IP_LEARNING key.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
src/nwfilter/nwfilter_gentech_driver.c

index e576dc42b735ab86a7a4a19672725325fad200fd..5c3b25edc3e16fb0429f32ab07c2e9c1fd196784 100644 (file)
@@ -732,6 +732,7 @@ virNWFilterInstantiate(const unsigned char *vmuuid ATTRIBUTE_UNUSED,
                                _("filter '%s' "
                                  "learning value '%s' invalid."),
                                filter->name, learning);
+                goto err_exit;
             }
         } else
              goto err_unresolvable_vars;