network: update operational state when we remove an address

This commit is contained in:
Yu Watanabe
2022-02-02 20:44:47 +09:00
parent 9216fddc5a
commit 613d65d88f
+4
View File
@@ -709,6 +709,10 @@ int address_remove(Address *address) {
link_ref(link);
address_enter_removing(address);
/* The operational state is determined by address state and carrier state. Hence, if we remove
* an address, the operational state may be changed. */
link_update_operstate(link, true);
return 0;
}