17aa40
From b30c37b500cbe0587656d5092a95fa695772cd0e Mon Sep 17 00:00:00 2001
17aa40
From: Yu Watanabe <watanabe.yu+github@gmail.com>
17aa40
Date: Thu, 6 Feb 2020 19:13:11 +0900
17aa40
Subject: [PATCH] sysctl: fix segfault
17aa40
17aa40
Fixes #14801.
17aa40
17aa40
(cherry picked from commit db99904bc8482efe556bb010a8b203a3e60ee37f)
17aa40
17aa40
Resolves: #2037807
17aa40
---
17aa40
 src/sysctl/sysctl.c | 2 +-
17aa40
 1 file changed, 1 insertion(+), 1 deletion(-)
17aa40
17aa40
diff --git a/src/sysctl/sysctl.c b/src/sysctl/sysctl.c
17aa40
index 7b0528877c..4c85d6887f 100644
17aa40
--- a/src/sysctl/sysctl.c
17aa40
+++ b/src/sysctl/sysctl.c
17aa40
@@ -183,7 +183,7 @@ static int parse_file(OrderedHashmap *sysctl_options, const char *path, bool ign
17aa40
 
17aa40
                 existing = ordered_hashmap_get(sysctl_options, p);
17aa40
                 if (existing) {
17aa40
-                        if (streq(value, existing->value)) {
17aa40
+                        if (streq_ptr(value, existing->value)) {
17aa40
                                 existing->ignore_failure = existing->ignore_failure || ignore_failure;
17aa40
                                 continue;
17aa40
                         }