summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-dhcp-server.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-11-17 14:51:06 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-11-17 14:51:06 +0100
commit599e10a1d22372c709fc292eca6b00ab97f194b7 (patch)
tree528c856eb6388b96badc96de4003f06cbd7bee1c /src/network/networkd-dhcp-server.c
parentnetwork: fix indentation (diff)
downloadsystemd-599e10a1d22372c709fc292eca6b00ab97f194b7.tar.xz
systemd-599e10a1d22372c709fc292eca6b00ab97f194b7.zip
network: fix logged error value
Diffstat (limited to 'src/network/networkd-dhcp-server.c')
-rw-r--r--src/network/networkd-dhcp-server.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/network/networkd-dhcp-server.c b/src/network/networkd-dhcp-server.c
index 1ae1d17057..f1a971c621 100644
--- a/src/network/networkd-dhcp-server.c
+++ b/src/network/networkd-dhcp-server.c
@@ -559,14 +559,13 @@ int config_parse_dhcp_server_raw_option_data(
return 0;
}
- r = dhcp_raw_option_data_type_from_string(word);
- if (r < 0) {
- log_syntax(unit, LOG_ERR, filename, line, r,
+ type = dhcp_raw_option_data_type_from_string(word);
+ if (type < 0) {
+ log_syntax(unit, LOG_ERR, filename, line, 0,
"Invalid DHCP server send data type, ignoring assignment: %s", p);
return 0;
}
- type = r;
switch(type) {
case DHCP_RAW_OPTION_DATA_UINT8:{
r = safe_atou8(p, &uint8_data);