]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network/l2tp: fix error code in log message
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 11 Jan 2023 04:11:00 +0000 (13:11 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 11 Jan 2023 04:11:00 +0000 (13:11 +0900)
src/network/netdev/l2tp-tunnel.c

index 7d51a619bd59b982a1ae6be51ab5306a5fba1455..335618f1a45a59c01d43ab7c88975be1671f672a 100644 (file)
@@ -542,7 +542,7 @@ int config_parse_l2tp_tunnel_local_address(
         }
 
         if (in_addr_is_null(f, &a)) {
-                log_syntax(unit, LOG_WARNING, filename, line, r,
+                log_syntax(unit, LOG_WARNING, filename, line, 0,
                            "L2TP Tunnel local address cannot be null, ignoring assignment: %s", rvalue);
                 return 0;
         }
@@ -598,7 +598,7 @@ int config_parse_l2tp_tunnel_remote_address(
         }
 
         if (in_addr_is_null(f, &a)) {
-                log_syntax(unit, LOG_WARNING, filename, line, r,
+                log_syntax(unit, LOG_WARNING, filename, line, 0,
                            "L2TP Tunnel remote address cannot be null, ignoring assignment: %s", rvalue);
                 return 0;
         }