GNS3 / ubridge

Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces.
GNU General Public License v3.0
115 stars 46 forks source link

Reset bridge_list after freeing resources #85

Closed fhaftmann closed 1 year ago

fhaftmann commented 1 year ago

After resources have been freed, bridge_list does not point to valid data any longer and hence has to be reset.

An alternative implementation would change the signature of free_bridges(bridge_t *bridge) to free_bridges(bridge_t **bridge) (analogously to add_bridge) and reset the parameter by side effect.