mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
String the consumers into the list of the provider they are attached to.
Noticed by: jhb
This commit is contained in:
parent
ffe9fd66ee
commit
4aa50d28b9
1 changed files with 5 additions and 1 deletions
|
|
@ -341,9 +341,13 @@ geom_xml2tree(struct gmesh *gmp, char *p)
|
|||
}
|
||||
LIST_FOREACH(co, &ge->consumer, consumer) {
|
||||
co->geom = geom_lookupid(gmp, co->geom)->ptr;
|
||||
if (co->provider != NULL)
|
||||
if (co->provider != NULL) {
|
||||
co->provider =
|
||||
geom_lookupid(gmp, co->provider)->ptr;
|
||||
LIST_INSERT_HEAD(
|
||||
&co->provider->consumers,
|
||||
co, consumers);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue