Skip to content

Commit 6299f1f

Browse files
authored
linux: stop old interface name instead of new one (#505)
1 parent 67af1db commit 6299f1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/if-linux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ link_netlink(struct dhcpcd_ctx *ctx, void *arg, struct nlmsghdr *nlm)
11371137

11381138
/* Handle interface being renamed */
11391139
if (strcmp(ifp->name, ifn) != 0) {
1140-
dhcpcd_handleinterface(ctx, -1, ifn);
1140+
dhcpcd_handleinterface(ctx, -1, ifp->name);
11411141
dhcpcd_handleinterface(ctx, 1, ifn);
11421142
return 0;
11431143
}

0 commit comments

Comments
 (0)