mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-02-06 18:41:30 +00:00
PPP, chained returns up to ppp_open()
ppp_open() now returns lower level protocol return value if something failed.
This commit is contained in:
parent
8a8cba75a2
commit
07f9212799
@ -258,8 +258,7 @@ int ppp_open(ppp_pcb *pcb, u16_t holdoff) {
|
||||
PPPDEBUG(LOG_DEBUG, ("ppp_open() called, holdoff=%d\n", holdoff));
|
||||
|
||||
if (holdoff == 0) {
|
||||
ppp_do_open(pcb);
|
||||
return PPPERR_NONE;
|
||||
return pcb->link_command_cb(pcb->link_ctx_cb, PPP_LINK_COMMAND_CONNECT);
|
||||
}
|
||||
|
||||
new_phase(pcb, PPP_PHASE_HOLDOFF);
|
||||
|
Loading…
x
Reference in New Issue
Block a user