daandemeyer / rpms / grub2

Forked from rpms/grub2 6 months ago
Clone
6174550
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
6174550
From: Peter Jones <pjones@redhat.com>
6174550
Date: Mon, 20 Jul 2020 12:24:02 -0400
6174550
Subject: [PATCH] Fix const char ** pointers in grub-core/net/bootp.c
6174550
6174550
This will need to get folded back in the right place on the next rebase,
6174550
but it's before "Make grub_strtol() "end" pointers have safer const
6174550
qualifiers" currently, so for now I'm leaving it here instead of merging
6174550
it back with the original patch.
6174550
6174550
Signed-off-by: Peter Jones <pjones@redhat.com>
6174550
---
6174550
 grub-core/net/bootp.c | 4 ++--
6174550
 1 file changed, 2 insertions(+), 2 deletions(-)
6174550
6174550
diff --git a/grub-core/net/bootp.c b/grub-core/net/bootp.c
add06f6
index 8fb8918ae7e..7baf3540c81 100644
6174550
--- a/grub-core/net/bootp.c
6174550
+++ b/grub-core/net/bootp.c
6174550
@@ -329,7 +329,7 @@ grub_net_configure_by_dhcp_ack (const char *name,
6174550
   struct grub_net_network_level_interface *inter;
6174550
   int mask = -1;
6174550
   char server_ip[sizeof ("xxx.xxx.xxx.xxx")];
6174550
-  const grub_uint8_t *opt;
6174550
+  const char *opt;
6174550
   grub_uint8_t opt_len, overload = 0;
6174550
   const char *boot_file = 0, *server_name = 0;
6174550
   grub_size_t boot_file_len, server_name_len;
6174550
@@ -505,7 +505,7 @@ grub_net_configure_by_dhcp_ack (const char *name,
6174550
   if (opt && opt_len)
6174550
     {
6174550
       grub_env_set_net_property (name, "vendor_class_identifier", (const char *) opt, opt_len);
6174550
-      if (opt && grub_strcmp (opt, "HTTPClient") == 0)
6174550
+      if (opt && grub_strcmp ((char *)opt, "HTTPClient") == 0)
6174550
         {
6174550
           char *proto, *ip, *pa;
6174550