Commit 48612dc
committed
pppd: Remove dead check for existence of route to remote IP
The have_route_to() call in auth_ip_addr() is dead code, so remove it.
It can never be reached because, to reach it, we would have to have
!auth_required && !allow_any_ip && !privileged, but auth_check_options()
sets auth_required to 1 in that case.
In other words, the logic established by previous commits is this:
If pppd is run by non-root and the noauth option isn't in effect, or
if the auth option is given, the peer has to authenticate, and the IP
addresses are controlled by the secrets file, with no reachability
check.
If pppd is run by root and authentication isn't required (i.e. the
auth option is not given), the peer can use any IP address, with no
reachability check.
In neither case is the reachability check done by have_route_to() used.
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>1 parent bbf96e4 commit 48612dc
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2143 | 2143 | | |
2144 | 2144 | | |
2145 | 2145 | | |
2146 | | - | |
| 2146 | + | |
2147 | 2147 | | |
2148 | 2148 | | |
2149 | 2149 | | |
| |||
0 commit comments