From 91785c3cc0d7d15ae747aa83239961ce7ae3e7cb Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Sat, 22 Jun 2013 22:18:08 +0400 Subject: ipoe: arp: fixed missing mutex unlock --- accel-pppd/ctrl/ipoe/arp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'accel-pppd/ctrl/ipoe') 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); -- cgit v1.2.3