From: Quang Anh <59093097+ngxquanganh@users.noreply.github.com> Date: Sat, 26 Apr 2025 17:15:35 +0000 (+0700) Subject: linux: stop old interface name instead of new one (#505) X-Git-Tag: v10.2.3~7 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=6299f1f1cabecdee1f82e06fc6cce234f933eea9;p=thirdparty%2Fdhcpcd.git linux: stop old interface name instead of new one (#505) --- diff --git a/src/if-linux.c b/src/if-linux.c index b9082505..96d1e50b 100644 --- a/src/if-linux.c +++ b/src/if-linux.c @@ -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; }