]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
linux: stop old interface name instead of new one (#505)
authorQuang Anh <59093097+ngxquanganh@users.noreply.github.com>
Sat, 26 Apr 2025 17:15:35 +0000 (00:15 +0700)
committerGitHub <noreply@github.com>
Sat, 26 Apr 2025 17:15:35 +0000 (18:15 +0100)
src/if-linux.c

index b9082505a5453c6600e75f68a48ad552204e2b2d..96d1e50b9a5be157e4b5a7d6144bf2396c751a61 100644 (file)
@@ -1137,7 +1137,7 @@ link_netlink(struct dhcpcd_ctx *ctx, void *arg, struct nlmsghdr *nlm)
 
        /* Handle interface being renamed */
        if (strcmp(ifp->name, ifn) != 0) {
-               dhcpcd_handleinterface(ctx, -1, ifn);
+               dhcpcd_handleinterface(ctx, -1, ifp->name);
                dhcpcd_handleinterface(ctx, 1, ifn);
                return 0;
        }