summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/sd-dhcp-lease.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-11-19 13:57:08 +0100
committerTom Gundersen <teg@jklm.no>2014-11-20 16:51:29 +0100
commit1c6eb4e36bf88015d0bbe8fae417622e6132b864 (patch)
treed0b321209c20df3feba18a116ede946e7fe01fd9 /src/libsystemd-network/sd-dhcp-lease.c
parent73fc23c0641d3659330f44cf1a6ea112d6a51708 (diff)
sd-dhcp-lease: fix copy-paste error asserting wrong function argument
Diffstat (limited to 'src/libsystemd-network/sd-dhcp-lease.c')
-rw-r--r--src/libsystemd-network/sd-dhcp-lease.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-dhcp-lease.c b/src/libsystemd-network/sd-dhcp-lease.c
index f046ac5672..3da71a2cfb 100644
--- a/src/libsystemd-network/sd-dhcp-lease.c
+++ b/src/libsystemd-network/sd-dhcp-lease.c
@@ -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;