diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-02-06 11:13:11 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-02-06 15:49:32 +0100 |
commit | db99904bc8482efe556bb010a8b203a3e60ee37f (patch) | |
tree | a8044970e088414b3026aa613710d6fe3b512318 /src/sysctl | |
parent | Merge pull request #14156 from fbuihuu/deal-with-aliases-when-disabling (diff) | |
download | systemd-db99904bc8482efe556bb010a8b203a3e60ee37f.tar.xz systemd-db99904bc8482efe556bb010a8b203a3e60ee37f.zip |
sysctl: fix segfault
Fixes #14801.
Diffstat (limited to 'src/sysctl')
-rw-r--r-- | src/sysctl/sysctl.c | 2 |
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; } |