summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c
index 4df88b9b..99ab4359 100644
--- a/src/lib/dev.c
+++ b/src/lib/dev.c
@@ -1415,7 +1415,7 @@ int local_flow_write(int fd,
pthread_rwlock_rdlock(&ai.lock);
if (ai.flows[fd].port_id < 0) {
- pthread_rwlock_rdlock(&ai.lock);
+ pthread_rwlock_unlock(&ai.lock);
return -ENOTALLOC;
}