diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2017-02-10 00:42:13 +0100 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2017-02-10 00:42:13 +0100 |
commit | aa1643ae393d9460bea8e2922c9cc0a3e6caf63d (patch) | |
tree | 09afe1ad6bded8815a058ef6476ea4481d9a032a /src/lib/rib.c | |
parent | 4ab16c933f829f51d202c77cfb98f552ad887159 (diff) | |
download | ouroboros-aa1643ae393d9460bea8e2922c9cc0a3e6caf63d.tar.gz ouroboros-aa1643ae393d9460bea8e2922c9cc0a3e6caf63d.zip |
lib: Fix bad lock in rib
Diffstat (limited to 'src/lib/rib.c')
-rw-r--r-- | src/lib/rib.c | 2 |
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; } |