[Dnsmasq-discuss] netid list issue
anikulin at dlink.ru
anikulin at dlink.ru
Thu Mar 21 10:03:29 GMT 2013
Simon says:
Ony first tag is real tag. Next are
> _working storage_
therefore this is wrong:
struct dhcp_config *config
struct dhcp_netid_list *list;
struct dhcp_netid *id;
for (list = config->netid; netid; netid = netid->next)
for (id = list->list; id; id = id->next) <- wrong!!
do_smth();
correctly:
for (list = config->netid; netid; netid = netid->next) {
id = list->list; //first item only
do_smth();
}
So this not bug but feature :)))
More information about the Dnsmasq-discuss
mailing list