WIP: Fix segfault and logic error in remove_duplicate_orports()
Compare changes
- Nick Mathewson authored
This function tried to modify an array in place, but did it in a pretty confusing and complicated way. I've revised it to follow a much more straightforward approach. Fixes bug #40065.
+ 24
− 4
@@ -186,8 +186,14 @@ describe_relay_port(const port_cfg_t *port)
@@ -195,26 +201,40 @@ remove_duplicate_orports(smartlist_t *ports)