diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2013-06-22 22:18:08 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2013-06-22 22:18:08 +0400 |
commit | 91785c3cc0d7d15ae747aa83239961ce7ae3e7cb (patch) | |
tree | d6453c317965f64978a7d9cfa3bd959bfef5be76 /accel-pppd/ctrl/ipoe | |
parent | 36b9bcc898d32ab359b155dee79a1f70bd900c69 (diff) | |
download | accel-ppp-91785c3cc0d7d15ae747aa83239961ce7ae3e7cb.tar.gz accel-ppp-91785c3cc0d7d15ae747aa83239961ce7ae3e7cb.zip |
ipoe: arp: fixed missing mutex unlock
Diffstat (limited to 'accel-pppd/ctrl/ipoe')
-rw-r--r-- | accel-pppd/ctrl/ipoe/arp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/arp.c b/accel-pppd/ctrl/ipoe/arp.c index fbef3d9..3bde87b 100644 --- a/accel-pppd/ctrl/ipoe/arp.c +++ b/accel-pppd/ctrl/ipoe/arp.c @@ -109,8 +109,10 @@ static int arp_read(struct triton_md_handler_t *h) if (!ses1) memcpy(ah2.ar_sha, s->ipoe->hwaddr, ETH_ALEN); else if (ses2) { - if (s->ipoe->opt_arp == 1 || ses1 == ses2) + if (s->ipoe->opt_arp == 1 || ses1 == ses2) { + pthread_mutex_unlock(&s->ipoe->lock); continue; + } memcpy(ah2.ar_sha, ses2->hwaddr, ETH_ALEN); } else memcpy(ah2.ar_sha, s->ipoe->hwaddr, ETH_ALEN); |