PPP, PPPoS, also clear last_xmit when resetting PPPoS control block

This commit is contained in:
Sylvain Rochet 2015-04-29 23:41:23 +02:00
parent 0a8b1c199d
commit 40c671b1a5

View File

@ -349,7 +349,7 @@ pppos_listen(ppp_pcb *ppp, void *ctx, struct ppp_addrs *addrs)
ppp_clear(ppp);
/* reset PPPoS control block to its initial state */
memset(&pppos->out_accm, 0, sizeof(pppos_pcb) - ( (char*)&((pppos_pcb*)0)->out_accm - (char*)0 ) );
memset(&pppos->last_xmit, 0, sizeof(pppos_pcb) - ( (char*)&((pppos_pcb*)0)->last_xmit - (char*)0 ) );
/* Wait passively */
lcp_wo = &ppp->lcp_wantoptions;