diff options
author | Thomas Haller <thaller@redhat.com> | 2014-11-19 13:57:08 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-11-20 16:51:29 +0100 |
commit | 1c6eb4e36bf88015d0bbe8fae417622e6132b864 (patch) | |
tree | d0b321209c20df3feba18a116ede946e7fe01fd9 | |
parent | 73fc23c0641d3659330f44cf1a6ea112d6a51708 (diff) |
sd-dhcp-lease: fix copy-paste error asserting wrong function argument
-rw-r--r-- | src/libsystemd-network/sd-dhcp-lease.c | 2 |
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; |