mirror of
https://github.com/systemd/systemd.git
synced 2026-08-07 00:21:01 +00:00
sd-dhcp-lease: fix copy-paste error asserting wrong function argument
This commit is contained in:
committed by
Tom Gundersen
parent
73fc23c064
commit
1c6eb4e36b
Notes:
Lennart Poettering
2014-12-09 19:55:22 +01:00
Backport: bugfix
@@ -51,7 +51,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