mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-16 13:12:47 +00:00
sd-dhcp-lease: fix copy-paste error asserting wrong function argument
(cherry picked from commit 1c6eb4e36b)
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
4978d5e4d8
commit
01c90902fa
@@ -50,7 +50,7 @@ int sd_dhcp_lease_get_address(sd_dhcp_lease *lease, struct in_addr *addr) {
|
||||
|
||||
int sd_dhcp_lease_get_lifetime(sd_dhcp_lease *lease, uint32_t *lifetime) {
|
||||
assert_return(lease, -EINVAL);
|
||||
assert_return(lease, -EINVAL);
|
||||
assert_return(lifetime, -EINVAL);
|
||||
|
||||
*lifetime = lease->lifetime;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user