diff options
author | Tom Gundersen <teg@jklm.no> | 2015-11-13 14:35:39 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-11-13 14:51:06 +0100 |
commit | 3098562c9236fe0bd3e7d950b6c53907304d277f (patch) | |
tree | e5ca8f5672a3cbca7e504ccc58aa1c962f90b412 /src/libsystemd-network/sd-dhcp6-client.c | |
parent | cf0f970fe1c6101b45cae8277c221c10398b8e1e (diff) |
networkd: dhcp6 - don't log about losing a lease we never had
Diffstat (limited to 'src/libsystemd-network/sd-dhcp6-client.c')
-rw-r--r-- | src/libsystemd-network/sd-dhcp6-client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-network/sd-dhcp6-client.c b/src/libsystemd-network/sd-dhcp6-client.c index e00ca2b00d..a443bb3a7a 100644 --- a/src/libsystemd-network/sd-dhcp6-client.c +++ b/src/libsystemd-network/sd-dhcp6-client.c @@ -259,12 +259,12 @@ int sd_dhcp6_client_set_request_option(sd_dhcp6_client *client, uint16_t option) int sd_dhcp6_client_get_lease(sd_dhcp6_client *client, sd_dhcp6_lease **ret) { assert_return(client, -EINVAL); - assert_return(ret, -EINVAL); if (!client->lease) return -ENOMSG; - *ret = client->lease; + if (ret) + *ret = client->lease; return 0; } |