summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/pppoe
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2016-03-31 22:38:40 +0300
committerDmitry Kozlov <xeb@mail.ru>2016-03-31 22:38:40 +0300
commite0aa33c19b70bd411814c51afdfc195438082e94 (patch)
treeee24194bcb76a1957753b00ac76a12faaeddffc0 /accel-pppd/ctrl/pppoe
parentb6878ed86ebd6776caef8b99f793438ccee08787 (diff)
downloadaccel-ppp-e0aa33c19b70bd411814c51afdfc195438082e94.tar.gz
accel-ppp-e0aa33c19b70bd411814c51afdfc195438082e94.zip
pppoe: disc.c: add missing initialization of context's before_switch function
Diffstat (limited to 'accel-pppd/ctrl/pppoe')
-rw-r--r--accel-pppd/ctrl/pppoe/disc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/pppoe/disc.c b/accel-pppd/ctrl/pppoe/disc.c
index db969d8..58efd1e 100644
--- a/accel-pppd/ctrl/pppoe/disc.c
+++ b/accel-pppd/ctrl/pppoe/disc.c
@@ -85,6 +85,7 @@ static struct disc_net *init_net(const struct ap_net *net)
}
n->ctx.close = disc_close;
+ n->ctx.before_switch = log_switch;
n->hnd.fd = sock;
n->hnd.read = disc_read;
n->net = net;