62a05cd
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
62a05cd
From: Stephen Benjamin <stephen@redhat.com>
62a05cd
Date: Fri, 12 Apr 2019 10:43:13 -0400
62a05cd
Subject: [PATCH] HTTP boot: strncmp returns 0 on equal
62a05cd
62a05cd
---
62a05cd
 grub-core/net/efi/http.c | 2 +-
62a05cd
 1 file changed, 1 insertion(+), 1 deletion(-)
62a05cd
62a05cd
diff --git a/grub-core/net/efi/http.c b/grub-core/net/efi/http.c
62a05cd
index 2a9624dacc4..484e0c68cee 100644
62a05cd
--- a/grub-core/net/efi/http.c
62a05cd
+++ b/grub-core/net/efi/http.c
62a05cd
@@ -19,7 +19,7 @@ http_configure (struct grub_efi_net_device *dev, int prefer_ip6)
62a05cd
   const char *rest, *http_server, *http_path = NULL;
62a05cd
 
62a05cd
   http_server = grub_env_get ("root");
62a05cd
-  https = grub_strncmp (http_server, "https", 5) ? 1 : 0;
62a05cd
+  https = (grub_strncmp (http_server, "https", 5) == 0) ? 1 : 0;
62a05cd
 
62a05cd
   /* extract http server + port */
62a05cd
   if (http_server)