From fc2701ae03d316afdf1e94b743cbd42b089f8005 Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Sat, 7 May 2016 01:48:17 +0200 Subject: [PATCH] PPP, ppp_init function is back, re-add magic_init Work on PPP MEMPOOL re-added the previously removed ppp_init function because we considered it useless. Re-add magic_init which was previously in ppp_init and removed in commit 15fbfb7363, it does not hurt doing so and might fill the gap if we failed understanding the crypto implication about removing it. --- src/netif/ppp/ppp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/netif/ppp/ppp.c b/src/netif/ppp/ppp.c index 106533cc..0a3b0431 100644 --- a/src/netif/ppp/ppp.c +++ b/src/netif/ppp/ppp.c @@ -594,6 +594,12 @@ int ppp_init(void) LWIP_MEMPOOL_INIT(PPP_PCB); + /* + * Initialize magic number generator now so that protocols may + * use magic numbers in initialization. + */ + magic_init(); + return 0; }