X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fauth.c;h=4271af687102dc62e3c2e3b47d3fc8ab1d70d0f8;hb=8e62a6d886edeecc52391db3216c026db6c0e7d9;hp=7b269b805b2b7eb06ec9792c7e24c222a6c4b3c8;hpb=c44ae5e6a7338c96eb463881fe709b2dfaffe568;p=ppp.git diff --git a/pppd/auth.c b/pppd/auth.c index 7b269b8..4271af6 100644 --- a/pppd/auth.c +++ b/pppd/auth.c @@ -553,6 +553,7 @@ link_required(unit) void start_link(unit) int unit; { + status = EXIT_CONNECT_FAILED; new_phase(PHASE_SERIALCONN); hungup = 0; @@ -665,9 +666,11 @@ link_terminated(unit) (*the_channel->cleanup)(); if (doing_multilink && multilink_master) { - if (!bundle_terminating) + if (!bundle_terminating) { new_phase(PHASE_MASTER); - else + if (master_detach && !detached) + detach(); + } else mp_bundle_terminated(); } else new_phase(PHASE_DEAD);