summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-04-04 09:36:50 +0200
committerdimitri staessens <dimitri.staessens@ugent.be>2017-04-04 09:36:50 +0200
commit5ac15427a1a2274dfb678ec569ce1698c6a89c77 (patch)
treea1d5f436e070701f944fe1d12bfa3c0947acf9db
parentca1d635458b5ef56e27d9265a2c89580d9d0f218 (diff)
downloadouroboros-5ac15427a1a2274dfb678ec569ce1698c6a89c77.tar.gz
ouroboros-5ac15427a1a2274dfb678ec569ce1698c6a89c77.zip
ipcpd: Fix lock order in local sdu_loop
-rw-r--r--src/ipcpd/local/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipcpd/local/main.c b/src/ipcpd/local/main.c
index bb7f8325..a49a5b97 100644
--- a/src/ipcpd/local/main.c
+++ b/src/ipcpd/local/main.c
@@ -113,8 +113,8 @@ static void * ipcp_local_sdu_loop(void * o)
if (fd != -1)
local_flow_write(fd, idx);
- pthread_rwlock_unlock(&ipcpi.state_lock);
pthread_rwlock_unlock(&local_data.lock);
+ pthread_rwlock_unlock(&ipcpi.state_lock);
}
}