]> git.ipfire.org Git - thirdparty/grub.git/commit
net: Remove variables hooks when interface is unregisted
authorB Horn <b@horn.uk>
Fri, 1 Nov 2024 23:49:48 +0000 (23:49 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 23 Jan 2025 15:22:48 +0000 (16:22 +0100)
commitaa8b4d7facef7b75a2703274b1b9d4e0e734c401
tree74aa743dc8500c63ae50c474992a4dd5888a921d
parenta1dd8e59da26f1a9608381d3a1a6c0f465282b1d
net: Remove variables hooks when interface is unregisted

The grub_net_network_level_interface_unregister(), previously
implemented in a header, did not remove the variables hooks that
were registered in grub_net_network_level_interface_register().
Fix this by implementing the same logic used to register the
variables and move the function into the grub-core/net/net.c.

Signed-off-by: B Horn <b@horn.uk>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/net/net.c
include/grub/net.h