mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 18:23:32 +08:00
dhcp6: fix uninitialized variable in returning from client_parse_message() (#8187)
Compiler warns about this with -Werror=maybe-uninitialized.
Fixes: 3bc424a3cc
This commit is contained in:
parent
cac26f0bc8
commit
2e016b98c3
@ -973,7 +973,7 @@ static int client_parse_message(
|
||||
lease->pd.ia_pd.lifetime_t2 = htobe32(lt_t2);
|
||||
}
|
||||
|
||||
return r;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int client_receive_reply(sd_dhcp6_client *client, DHCP6Message *reply, size_t len) {
|
||||
|
Loading…
Reference in New Issue
Block a user