diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2015-11-24 11:43:33 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2015-11-24 11:43:33 +0300 |
commit | dd0d5ed51e5351d7be2cbdf86b04965b7bcb136b (patch) | |
tree | 7c21e8fa212737f733baf7579c2d88b05e051108 /accel-pppd/ctrl/pppoe/pppoe.c | |
parent | de64a4d20ad6d2cd0238ab9a0ee776f6086a4bfb (diff) | |
download | accel-ppp-dd0d5ed51e5351d7be2cbdf86b04965b7bcb136b.tar.gz accel-ppp-dd0d5ed51e5351d7be2cbdf86b04965b7bcb136b.zip |
pppoe: fix missing pthread_mutex_unlock
Diffstat (limited to 'accel-pppd/ctrl/pppoe/pppoe.c')
-rw-r--r-- | accel-pppd/ctrl/pppoe/pppoe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/pppoe/pppoe.c b/accel-pppd/ctrl/pppoe/pppoe.c index 8d20507a..b51b4fed 100644 --- a/accel-pppd/ctrl/pppoe/pppoe.c +++ b/accel-pppd/ctrl/pppoe/pppoe.c @@ -181,7 +181,8 @@ static void disconnect(struct pppoe_conn_t *conn) } else if (conn->serv->vid) { triton_context_call(&conn->serv->ctx, (triton_event_func)pppoe_serv_start_timer, conn->serv); pthread_mutex_unlock(&conn->serv->lock); - } + } else + pthread_mutex_unlock(&conn->serv->lock); } else pthread_mutex_unlock(&conn->serv->lock); |