]> git.ozlabs.org Git - ppp.git/commitdiff
pppd: remove redundant rtentry device name init in cifdefaultroute() (#535)
authorDragonBluep <70847398+DragonBluep@users.noreply.github.com>
Thu, 21 Nov 2024 03:17:22 +0000 (11:17 +0800)
committerGitHub <noreply@github.com>
Thu, 21 Nov 2024 03:17:22 +0000 (14:17 +1100)
The rtentry device name has already been set in commit:
9856f47063c0 ("Specify the device name on the default route deletion")

Fixes: 35e5a569c988 (pppd: add support for defaultroute-metric option)
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
pppd/sys-linux.c

index c0955a05b9a89dbd60afe4e51821df9473646a38..b4972317bf5d3dae675634fe2106cfa8bc4b288a 100644 (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 */