summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/rib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/rib.c b/src/lib/rib.c
index c77eab20..af4abccf 100644
--- a/src/lib/rib.c
+++ b/src/lib/rib.c
@@ -1144,7 +1144,7 @@ int rib_event_wait(ro_set_t * set,
if (ret != -ETIMEDOUT)
list_move(&rq->events, &sub->events);
- pthread_rwlock_wrlock(&rib.lock);
+ pthread_rwlock_unlock(&rib.lock);
return ret;
}