aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index e805007..5533b12 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1181,7 +1181,7 @@ fn handle_ipcp(
let mut ncp_states = ncp_states.lock().expect("ncp state mutex is poisoned");
match ncp_states[&Network::Ipv4] {
- Ncp::Dead => {} // If peer sends a request before we do it's not unexpected.
+ Ncp::Dead => return Ok(()), // If peer sends a request before we do it's not unexpected.
Ncp::Configure(identifier, attempt) => {
*ncp_states.get_mut(&Network::Ipv4).expect("no ipv4 state") =
Ncp::ConfAck(identifier, attempt)
@@ -1362,7 +1362,7 @@ fn handle_ipv6cp(
let mut ncp_states = ncp_states.lock().expect("ncp state mutex is poisoned");
match ncp_states[&Network::Ipv6] {
- Ncp::Dead => {} // If peer sends a request before we do it's not unexpected.
+ Ncp::Dead => return Ok(()), // If peer sends a request before we do it's not unexpected.
Ncp::Configure(identifier, attempt) => {
*ncp_states.get_mut(&Network::Ipv6).expect("no ipv6 state") =
Ncp::ConfAck(identifier, attempt)