From e0aa33c19b70bd411814c51afdfc195438082e94 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Thu, 31 Mar 2016 22:38:40 +0300 Subject: pppoe: disc.c: add missing initialization of context's before_switch function --- accel-pppd/ctrl/pppoe/disc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'accel-pppd') diff --git a/accel-pppd/ctrl/pppoe/disc.c b/accel-pppd/ctrl/pppoe/disc.c index db969d8f..58efd1e2 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; -- cgit v1.2.3