summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-02-06 19:13:11 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2020-02-06 23:49:32 +0900
commitdb99904bc8482efe556bb010a8b203a3e60ee37f (patch)
treea8044970e088414b3026aa613710d6fe3b512318 /src
parent5650ec7a11beb18390f4db081128eb3756abf064 (diff)
downloadsystemd-db99904bc8482efe556bb010a8b203a3e60ee37f.tar.gz
sysctl: fix segfault
Fixes #14801.
Diffstat (limited to 'src')
-rw-r--r--src/sysctl/sysctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysctl/sysctl.c b/src/sysctl/sysctl.c
index bbcf0c4323..0cdb740d21 100644
--- a/src/sysctl/sysctl.c
+++ b/src/sysctl/sysctl.c
@@ -257,7 +257,7 @@ static int parse_file(OrderedHashmap **sysctl_options, const char *path, bool ig
existing = ordered_hashmap_get(*sysctl_options, p);
if (existing) {
- if (streq(value, existing->value)) {
+ if (streq_ptr(value, existing->value)) {
existing->ignore_failure = existing->ignore_failure || ignore_failure;
continue;
}