summaryrefslogtreecommitdiff
path: root/src/irmd/main.c
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-22 20:16:12 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-05-22 20:16:12 +0200
commit467e504993c1cb0351dc3e279e7aeab8e5df333f (patch)
tree7ef340cfa264754362bbcb561e2fbfcd7f6c6490 /src/irmd/main.c
parent85a26178e91679983e6fd782d9862a43132227f5 (diff)
parent702d024ce6f72507f12fadfe0f0a1bc2c585c0b9 (diff)
downloadouroboros-467e504993c1cb0351dc3e279e7aeab8e5df333f.tar.gz
ouroboros-467e504993c1cb0351dc3e279e7aeab8e5df333f.zip
Merged in sandervrijders/ouroboros/be (pull request #108)
irmd: Change read lock to write lock
Diffstat (limited to 'src/irmd/main.c')
-rw-r--r--src/irmd/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c
index 4ee6399d..a33fae84 100644
--- a/src/irmd/main.c
+++ b/src/irmd/main.c
@@ -1208,7 +1208,7 @@ static int flow_dealloc_ipcp(int port_id)
struct port_map_entry * e = NULL;
rw_lock_rdlock(&instance->state_lock);
- rw_lock_rdlock(&instance->flows_lock);
+ rw_lock_wrlock(&instance->flows_lock);
e = get_port_map_entry(port_id);
if (e == NULL) {