Also check access for dijkstra_net_meta_new_to_list

This commit is contained in:
Markus Koch 2021-03-04 22:01:13 +01:00
parent 12d5bdc738
commit f37ec6d03f

View File

@ -573,7 +573,9 @@ struct dijkstra_net_meta *dijkstra_net_meta_new_to_list(struct dijkstra_solver *
for (l = solver->net_metas; l != NULL; l = l->next) {
net_meta = l->data;
if (net_meta->type == net_type && !strcmp(net_meta->name, name)) {
if (net_meta->type == net_type &&
!strcmp(net_meta->name, name) &&
(net_meta->access && (!strcmp(net_meta->access, access)))) {
return net_meta;
}
}