summaryrefslogtreecommitdiff
path: root/src/ipcpd
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-04-04 07:53:30 +0000
committerSander Vrijders <sander.vrijders@ugent.be>2017-04-04 07:53:30 +0000
commit7647833ec5bafd7b9c54e97ffde31227f4d220a2 (patch)
treea1d5f436e070701f944fe1d12bfa3c0947acf9db /src/ipcpd
parentca1d635458b5ef56e27d9265a2c89580d9d0f218 (diff)
parent5ac15427a1a2274dfb678ec569ce1698c6a89c77 (diff)
downloadouroboros-7647833ec5bafd7b9c54e97ffde31227f4d220a2.tar.gz
ouroboros-7647833ec5bafd7b9c54e97ffde31227f4d220a2.zip
Merged in dstaesse/ouroboros/be-stable (pull request #458)
ipcpd: Fix lock order in local sdu_loop
Diffstat (limited to 'src/ipcpd')
-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);
}
}