summaryrefslogtreecommitdiff
path: root/src/ipcpd/eth
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2022-05-21 16:17:10 +0200
committerSander Vrijders <sander@ouroboros.rocks>2022-05-22 15:11:22 +0200
commit072f555c07318a946cd2131b9b261d11a96fbbf8 (patch)
treed9d804697aea5574ff626ce78de3888062a05502 /src/ipcpd/eth
parentbec8f9ac7d6ebefbce6bd4c882c0f9616f561f1c (diff)
downloadouroboros-072f555c07318a946cd2131b9b261d11a96fbbf8.tar.gz
ouroboros-072f555c07318a946cd2131b9b261d11a96fbbf8.zip
ipcpd: Fix deadlock on exit in udp, local, eth
The IPCP flow_set was getting destroyed with the IPCP main loop still running, causing potential deadlocks. Reported-by: Thijs Paelman Confirmed-by: Dimitri Staessens <dimitri@ouroboros.rocks> Tested-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/ipcpd/eth')
-rw-r--r--src/ipcpd/eth/eth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipcpd/eth/eth.c b/src/ipcpd/eth/eth.c
index ade8485c..294373b6 100644
--- a/src/ipcpd/eth/eth.c
+++ b/src/ipcpd/eth/eth.c
@@ -1883,10 +1883,10 @@ int main(int argc,
#endif
}
- eth_data_fini();
-
ipcp_fini();
+ eth_data_fini();
+
exit(EXIT_SUCCESS);
fail_create_r: