From aa1643ae393d9460bea8e2922c9cc0a3e6caf63d Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Fri, 10 Feb 2017 00:42:13 +0100 Subject: lib: Fix bad lock in rib --- src/lib/rib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/rib.c') 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; } -- cgit v1.2.3