diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-07-29 16:38:37 +0200 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-07-29 16:38:37 +0200 |
commit | 5b5e130cf9b2df9c35887260f65ab6b9ef95ff6c (patch) | |
tree | 96a6cd973f9cbdd38fe9a0edd26a1fc1caeb92f4 | |
parent | 7a9f1dcf7a829c7df48e7853f68e5179dfd556a1 (diff) |
set auth protocol correctly in all lcp configure-ack order cases
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index ac71a9c..8ba1e4b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -521,7 +521,8 @@ fn handle_lcp( let mut state = state.lock().expect("ppp state mutex is poisoned"); match *state { Ppp::Synchronize(identifier, mru, magic_number, attempt) => { - *state = Ppp::SyncAck(identifier, mru, None, magic_number, attempt) + *state = + Ppp::SyncAck(identifier, mru, auth_proto.clone(), magic_number, attempt) } Ppp::SyncAck(..) => {} // Simply retransmit our previous ack. Ppp::SyncAcked(..) => *state = Ppp::Auth(auth_proto.clone(), 0), |