From d95f1e99131c30528587f126332cbec64afdfadb Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Mon, 4 Jun 2012 22:48:12 +0200 Subject: [PATCH] added missing initialisation in ppp_init.c --- src/netif/ppp/ppp.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/netif/ppp/ppp.c b/src/netif/ppp/ppp.c index 0f7a0119..892871ea 100644 --- a/src/netif/ppp/ppp.c +++ b/src/netif/ppp/ppp.c @@ -360,7 +360,17 @@ int ppp_init(void) { struct protent *protp; debug = 1; + + new_phase(PHASE_INITIALIZE); + error_count = 0; + unsuccess = 0; + listen_time = 0; + status = EXIT_OK; + need_holdoff = 1; ifunit = 1; /* FIXME: remove ifunit */ +#if PPP_STATS_SUPPORT + link_stats_valid = 0; +#endif /* PPP_STATS_SUPPORT */ /* openlog("LWIP-PPP", LOG_PID | LOG_NDELAY, LOG_DAEMON);