summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/pppoe
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2016-03-29 13:43:25 +0300
committerDmitry Kozlov <xeb@mail.ru>2016-03-29 13:43:25 +0300
commitdd2ccfbed467fcb8c2c33a1c5f114409e6ae85c4 (patch)
tree2aadadb29af696452ca2e2ef35bbbd000f99d013 /accel-pppd/ctrl/pppoe
parentb8718a7737e0e58d404914a21747cbebf2d9c425 (diff)
downloadaccel-ppp-dd2ccfbed467fcb8c2c33a1c5f114409e6ae85c4.tar.gz
accel-ppp-dd2ccfbed467fcb8c2c33a1c5f114409e6ae85c4.zip
pppoe: add missing stopping of discovery on vlan timeout
Diffstat (limited to 'accel-pppd/ctrl/pppoe')
-rw-r--r--accel-pppd/ctrl/pppoe/pppoe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/pppoe/pppoe.c b/accel-pppd/ctrl/pppoe/pppoe.c
index 8a4ce5a..bbb113a 100644
--- a/accel-pppd/ctrl/pppoe/pppoe.c
+++ b/accel-pppd/ctrl/pppoe/pppoe.c
@@ -1225,8 +1225,10 @@ static void pppoe_serv_timeout(struct triton_timer_t *t)
pthread_mutex_unlock(&serv->lock);
return;
}
-
pthread_mutex_unlock(&serv->lock);
+
+ pppoe_disc_stop(serv);
+
pppoe_server_free(serv);
}