summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/pppoe/pppoe.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2015-11-24 11:43:33 +0300
committerDmitry Kozlov <xeb@mail.ru>2015-11-24 11:43:33 +0300
commitdd0d5ed51e5351d7be2cbdf86b04965b7bcb136b (patch)
tree7c21e8fa212737f733baf7579c2d88b05e051108 /accel-pppd/ctrl/pppoe/pppoe.c
parentde64a4d20ad6d2cd0238ab9a0ee776f6086a4bfb (diff)
downloadaccel-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.c3
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);