update init of br_inst

This commit is contained in:
Feten Besbes 2021-02-01 19:42:00 +01:00
parent 1249617333
commit cc35c959c1

View file

@ -2496,9 +2496,9 @@ static int fetch_and_configure_inner_vid(char *br_inst, char *type_val, char **v
static int handle_inner_vid() { static int handle_inner_vid() {
struct uci_section *s = NULL, *sec = NULL; struct uci_section *s = NULL, *sec = NULL;
char *br_inst = NULL, *vid = NULL;
uci_foreach_sections("network", "interface", s) { uci_foreach_sections("network", "interface", s) {
char *br_inst = NULL, *vid = NULL;
// Get the bridge instance. // Get the bridge instance.
uci_path_foreach_option_eq(bbfdm, "dmmap_bridge_port", "bridge_port", "interface", section_name(s), sec) { uci_path_foreach_option_eq(bbfdm, "dmmap_bridge_port", "bridge_port", "interface", section_name(s), sec) {
dmuci_get_value_by_section_string(sec, "br_inst", &br_inst); dmuci_get_value_by_section_string(sec, "br_inst", &br_inst);