diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2016-03-17 17:23:53 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2016-03-17 17:23:53 +0300 |
commit | 1709f9496d5a47a45865df9c8328092aeb159bf7 (patch) | |
tree | b2cfcaada6cb8e6bf73c9b611e5257011891b90f /accel-pppd/ctrl/ipoe/ipoe.c | |
parent | 61d91047cdbf134c98d414951d84e38ff2adbd34 (diff) | |
download | accel-ppp-1709f9496d5a47a45865df9c8328092aeb159bf7.tar.gz accel-ppp-1709f9496d5a47a45865df9c8328092aeb159bf7.zip |
ipoe: add missing pthread_mutex_unlock
Diffstat (limited to 'accel-pppd/ctrl/ipoe/ipoe.c')
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index 30ee87f0..a0ab5b85 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -1831,13 +1831,16 @@ void ipoe_recv_up(int ifindex, struct ethhdr *eth, struct iphdr *iph) if (serv->ifindex != ifindex) continue; - if (!serv->opt_up) + if (!serv->opt_up) { + pthread_mutex_unlock(&serv_lock); return; + } pthread_mutex_lock(&serv->lock); list_for_each_entry(ses, &serv->sessions, entry) { if (ses->yiaddr == iph->saddr) { pthread_mutex_unlock(&serv->lock); + pthread_mutex_unlock(&serv_lock); return; } } |