]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
IPv4LL: free on nodrop
authorRoy Marples <roy@marples.name>
Mon, 3 Nov 2025 14:56:39 +0000 (14:56 +0000)
committerRoy Marples <roy@marples.name>
Mon, 3 Nov 2025 14:56:39 +0000 (14:56 +0000)
src/ipv4ll.c

index 4dc3ba7c897ad5af66a1bfd985ec29fabeed5f88..c16a1dca983ac755c42a9a143f8e040214deb039 100644 (file)
@@ -452,7 +452,7 @@ ipv4ll_drop(struct interface *ifp)
        ipv4ll_freearp(ifp);
 
        if ((ifp->options->options & DHCPCD_NODROP) == DHCPCD_NODROP)
-               return;
+               goto free;
 
        state = IPV4LL_STATE(ifp);
        if (state) {
@@ -483,6 +483,7 @@ ipv4ll_drop(struct interface *ifp)
                script_runreason(ifp, "IPV4LL");
        }
 
+free:
        ipv4ll_free(ifp);
        dhcpcd_dropped(ifp);
 }