mirror of https://github.com/OISF/suricata
util-device: fix LiveBuildDeviceListCustom
The code was assuming that the dictionnary containing the parameter of a interface was ordered. But for YAML, the order is not assumed so in case the configuration is generated we may not be able to parse correctly the configuration file. By iterating on child on main node and then iterating on subchild and doing a match on the name, we are able to find the interface list. In term of code, this algorithm was obtained by simply removing the test on the name of the first child.pull/1473/head
parent
268285c49f
commit
43f691fef8
Loading…
Reference in New Issue