pppd: remove redundant rtentry device name init in cifdefaultroute() (#535)

The rtentry device name has already been set in commit:
9856f47063 ("Specify the device name on the default route deletion")

Fixes: 35e5a569c9 (pppd: add support for defaultroute-metric option)

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
This commit is contained in:
DragonBluep 2024-11-21 11:17:22 +08:00 committed by GitHub
parent 5f6eabdb66
commit 3102b0b618
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2279,8 +2279,6 @@ int cifdefaultroute (int unit, u_int32_t ouraddr, u_int32_t gateway)
SET_SA_FAMILY (rt.rt_dst, AF_INET);
SET_SA_FAMILY (rt.rt_gateway, AF_INET);
rt.rt_dev = ifname;
rt.rt_dev = ifname;
rt.rt_metric = dfl_route_metric + 1; /* +1 for binary compatibility */