[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 10/10] bootp: Fix logical operator in DHCP option overload check
From: |
Michael Chang |
Subject: |
[PATCH 10/10] bootp: Fix logical operator in DHCP option overload check |
Date: |
Mon, 16 Dec 2024 16:03:39 +0800 |
Signed-off-by: Michael Chang <mchang@suse.com>
---
grub-core/net/bootp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/grub-core/net/bootp.c b/grub-core/net/bootp.c
index 8bf0ca782..0bfa3d185 100644
--- a/grub-core/net/bootp.c
+++ b/grub-core/net/bootp.c
@@ -379,7 +379,7 @@ grub_net_configure_by_dhcp_ack (const char *name,
boot_file = (const char *) opt;
boot_file_len = opt_len;
}
- else if (size > OFFSET_OF (boot_file, bp) && !(overload &&
GRUB_DHCP_OPT_OVERLOAD_FILE) &&
+ else if (size > OFFSET_OF (boot_file, bp) && !(overload &
GRUB_DHCP_OPT_OVERLOAD_FILE) &&
bp->boot_file[0])
{
boot_file = bp->boot_file;
--
2.47.1
- [PATCH 00/10] Support UEFI HTTP boot with IPv6 and DNS, Michael Chang, 2024/12/16
- [PATCH 01/10] net/http: Check result of grub_netbuff_put() in http_receive(), Michael Chang, 2024/12/16
- [PATCH 02/10] efinet: Add structures for PXE messages, Michael Chang, 2024/12/16
- [PATCH 04/10] grub.texi: Add net_dhcp6 document, Michael Chang, 2024/12/16
- [PATCH 05/10] bootp: Process DHCPACK packet during HTTP Boot, Michael Chang, 2024/12/16
- [PATCH 03/10] efinet + bootp: add net_dhcp6 command supporting dhcpv6, Michael Chang, 2024/12/16
- [PATCH 06/10] efinet: Configure network from UEFI device path, Michael Chang, 2024/12/16
- [PATCH 07/10] efinet: Set DNS server from UEFI protocol, Michael Chang, 2024/12/16
- [PATCH 08/10] kern/efi/efi: Print URI and DNS device path info, Michael Chang, 2024/12/16
- [PATCH 09/10] kern/efi/efi: Correct endianness in IPv6 device path, Michael Chang, 2024/12/16
- [PATCH 10/10] bootp: Fix logical operator in DHCP option overload check,
Michael Chang <=