From 3b178131bd927c46e3ac3a835af869b77ad61159 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Tue, 8 Sep 2020 19:25:00 -0600 Subject: [PATCH] state: sync refcounts using mapped interface name, not physical interface name --- libifupdown/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libifupdown/state.c b/libifupdown/state.c index 06a3f1e..344a417 100644 --- a/libifupdown/state.c +++ b/libifupdown/state.c @@ -166,7 +166,7 @@ lif_state_sync(struct lif_dict *state, struct lif_dict *if_collection) { struct lif_dict_entry *entry = iter->data; struct lif_state_record *rec = entry->data; - struct lif_interface *iface = lif_interface_collection_find(if_collection, entry->key); + struct lif_interface *iface = lif_interface_collection_find(if_collection, rec->mapped_if); iface->refcount = rec->refcount; }