]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev: fixed config_parse_ifalias() logic not to skip setting IFLA_IFALIAS
authorTomasz Pala <gotar@polanet.pl>
Wed, 18 May 2022 16:11:42 +0000 (18:11 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 18 May 2022 20:04:26 +0000 (05:04 +0900)
this flaw was introduced in 6a74900002981eacbde382f659ab706ca36155cc

src/udev/net/link-config.c

index 42745b6c59b7b87eac064c73f75949eaccd11712..28c0e633a3bc98f652f8ea4d89a11a8c3c72d31b 100644 (file)
@@ -993,7 +993,7 @@ int config_parse_ifalias(
         assert(rvalue);
         assert(data);
 
-        if (!isempty(rvalue)) {
+        if (isempty(rvalue)) {
                 *s = mfree(*s);
                 return 0;
         }