]> git.ipfire.org Git - thirdparty/grub.git/commit
net/dns: Fix removal of DNS server
authorRenaud Métrich <rmetrich@redhat.com>
Fri, 28 Apr 2023 11:05:37 +0000 (13:05 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Wed, 17 May 2023 11:43:30 +0000 (13:43 +0200)
commitf301a9356b6338e983eae38debe69bbd3a417b1a
tree544debdfaa605ea6eb31ad4aeea55a6fb7284c6c
parent2188db1a9f562f0987dd47e0775c3d4d34cccd25
net/dns: Fix removal of DNS server

When deleting the DNS server, we get the following error message:
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
grub> net_del_dns 192.168.122.1
error: ../../grub-core/net/dns.c:646:no DNS reply received.
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

This happens because the implementation is broken, it does a "add"
internally instead of a "delete".

Signed-off-by: Renaud Métrich <rmetrich@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/net/dns.c