mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-17 21:56:45 +08:00
Commit7df5496e7brevealed a regression introduced in commit5a71509353which broke IPCP reset state. ask_for_local was set to 0 if ouraddr initial value is 0, if ask_for_local was false go->ouraddr was cleared in reset callback, commit5a71509353breaks it by removing this clearing. This regression was silent because the whole ppp pcb runtime data was cleared before reconnecting until commit7df5496e7bwhich removed this giant clearing. Fix it by reintroducing ask_for_local boolean value, with proper initial value following what unused function ip_check_options do. Fixes:7df5496e7b("PPP, rework initial/reconnect cleanup") Fixes:5a71509353("PPP, CORE, IPCP: removed useless ask_for_local boolean")