If the peer gives us 0.0.0.0 as his IP number, NAK it rather than accepting
it as being in range. set ifaddr 1.2.3.4/0 5.6.7.8/0 no longer allows 0.0.0.0 as a valid IP. Reported/tested by: Bohdan Horst <nexus@hoth.amu.edu.pl> MFC after: 3 days
This commit is contained in:
parent
9acdabbe1e
commit
3c34956a21
@ -1013,7 +1013,8 @@ ipcp_ValidateReq(struct ipcp *ipcp, struct in_addr ip, struct fsm_decode *dec)
|
||||
}
|
||||
return;
|
||||
}
|
||||
} else if (!ncprange_containsip4(&ipcp->cfg.peer_range, ip)) {
|
||||
} else if (ip.s_addr == INADDR_ANY ||
|
||||
!ncprange_containsip4(&ipcp->cfg.peer_range, ip)) {
|
||||
/*
|
||||
* If the destination address is not acceptable, NAK with what we
|
||||
* want to use.
|
||||
|
Loading…
Reference in New Issue
Block a user