network/l2tp: fix error code in log message

This commit is contained in:
Yu Watanabe
2023-01-11 13:11:00 +09:00
parent c32b049dfb
commit 4da53043a6
+2 -2
View 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;
}