When we get an LCP TLU, go into PHASE_AUTHENTICATE
from any other phase besides PHASE_NETWORK, otherwise there's a chance that we end up sending auth packets and dropping the replies.
This commit is contained in:
parent
ac11598c99
commit
93aa08a493
@ -23,7 +23,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: datalink.c,v 1.34 1999/02/26 21:28:10 brian Exp $
|
||||
* $Id: datalink.c,v 1.35 1999/03/04 17:42:15 brian Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -494,7 +494,7 @@ datalink_LayerUp(void *v, struct fsm *fp)
|
||||
lcp->auth_ineed = lcp->want_auth;
|
||||
lcp->auth_iwait = lcp->his_auth;
|
||||
if (lcp->his_auth || lcp->want_auth) {
|
||||
if (bundle_Phase(dl->bundle) == PHASE_ESTABLISH)
|
||||
if (bundle_Phase(dl->bundle) != PHASE_NETWORK)
|
||||
bundle_NewPhase(dl->bundle, PHASE_AUTHENTICATE);
|
||||
log_Printf(LogPHASE, "%s: his = %s, mine = %s\n", dl->name,
|
||||
Auth2Nam(lcp->his_auth, lcp->his_authtype),
|
||||
|
Loading…
x
Reference in New Issue
Block a user